components/prism-c.min.js


Log

Author Commit Date CI Message
Michael Schmidt d85a64ae 2021-12-05T14:33:15 C: Added `char` token (#3207)
Michael Schmidt e2630d89 2021-09-26T11:52:18 ESLint: Added `regexp/sort-alternatives` rule (#3093)
Michael Schmidt 79d22182 2021-06-08T13:50:35 FIxed some cases of quadratic worst-case runtime (#2922)
Michael Schmidt e644178b 2020-12-28T18:19:11 Added test for polynomial backtracking (#2597)
Michael Schmidt 8828500e 2020-12-22T10:54:55 Tests: Added strict checks for `Prism.languages.extend` (#2572)
Michael Schmidt 129faf5c 2020-11-04T11:48:51 C: Better class name and macro name detection (#2585)
Michael Schmidt 8a72fa6f 2020-06-29T13:09:56 C/C++: Improved macros and expressions (#2440)
Michael Schmidt fdcf7ed2 2020-04-29T15:25:01 C: Improved macros (#2320)
Michael Schmidt 7a554b5f 2020-04-16T22:27:54 Fixed several cases of exponential backtracking (#2268)
Michael Schmidt fa630726 2020-02-24T23:57:55 C/C++: Improvemed `comment` pattern (#2229) This improves the `comment` pattern by allowing backslash-escaped line breaks in single-line comments.
Michael Schmidt 674f4b35 2020-02-18T21:52:43 C/C++/OpenCL C: Improvements (#2196) This makes a few minor improvements to C and OpenCL C. Some of those improvements carry over to C++. For more details, see the pull request.
Michael Schmidt 3e00bb9c 2019-03-07T15:22:30 Rebuilt Prism (#1794) This is a rebuilt of Prism to update minified files.
Michael Schmidt 7eccea5c 2019-01-22T00:49:40 Improve C language (#1697) This PR adds support for [hexadecimal floating-point literals](http://www.cplusplus.com/doc/tutorial/structures/), and [`enum`](https://www.geeksforgeeks.org/enumeration-enum-c/) and [`struct`](https://www.tutorialspoint.com/cprogramming/c_structures.htm) class names.
Michael Schmidt 7af8f8be 2018-08-19T17:09:29 C/C++/Java operator update (#1528) This PR extends and updates the operators of C, C++, and Java. Java and C++ now support the -> operator. (C++ had a bug.) The tests of all languages were updated and the operator pattern for each language is now shorter.
Golmote 12c0b20a 2018-03-08T22:19:01 Decouple minus sign from number pattern in most languages. Close #1110
Golmote ffeb26e9 2017-10-22T14:19:33 C: Regexp optimisation + don't use captures if not needed
Golmote 43412659 2017-09-09T12:31:19 Run gulp
Golmote e135947c 2015-10-10T12:48:04 Run gulp and update tests after #801 merge
Golmote 071c3ddf 2015-09-04T00:13:37 Merge branch 'c-fixes' of https://github.com/rygorous/prism into gh-pages Conflicts: components/prism-c.js components/prism-c.min.js components/prism-clike.js components/prism-clike.min.js + added tests
Golmote 4d64d077 2015-09-04T00:11:44 Merge branch 'c-fixes' of https://github.com/rygorous/prism into gh-pages Conflicts: components/prism-c.js components/prism-c.min.js components/prism-clike.js components/prism-clike.min.js + added tests
Golmote 48686353 2015-07-12T08:30:48 C: Used property as an alias for macro statements + added support for \r in macros
Golmote dcce1a78 2015-07-12T08:21:31 C: Removed string pattern (now that C-like supports escaped new lines) + simplified operators regexp
Golmote b1fd5bdc 2015-03-10T08:27:53 Removed unused global flag in all grammars
Ben Briggs 4247baec 2014-07-28T16:54:50 Fix conflicts.
Andreas Rohner 550c81e7 2014-07-11T21:21:27 Fix for some serious bugs in C and C++ highlighter &lt; and &gt; don't seem to work as they used to. So this patch replaces them with the corresponding < or > sign like it was done in the clike base language. The pattern for macro statements was seriously flawed. It didn't allow for macros with no argument like #else or #endif. This patch fixes the problem and additionally adds support for multiline macros, which are fairly common. #define FOO(a, b, c) \ do { \ do_stuff_here \ do_more_stuff \ } while (0) Furthermore the path of the #include macro is highlighted as a string. #include <stdio.h> #include "config.h" C also allows for multiline strings in a similar way as multiline macros. "This is a \ multiline \ string"
Ben Briggs 7cfd29a9 2014-05-26T11:20:55 Rebuild minified files.
Lea Verou 36471491 2014-04-21T13:36:32 Updated minified files
Fabian Giesen 2aeed5cc 2013-07-25T19:19:15 Refine C number regexp. - Exponent may contain '+', not just '-'. - Numbers may have "float" (f), "unsigned" (u), "long" (l) or "long long" (ll) suffixes. The set of suffixes described by this regexp is somewhat larger than what a real C compiler would accept.
Andreas Rohner 47ffc24c 2013-03-16T18:39:06 Add C/C++ highlighting support