components/prism-clike.min.js


Log

Author Commit Date CI Message
Michael Schmidt 0a3932fe 2020-12-30T17:43:57 C-like: Made all comments greedy (#2680)
Michael Schmidt e644178b 2020-12-28T18:19:11 Added test for polynomial backtracking (#2597)
Michael Schmidt 7db0cab3 2019-10-16T11:26:18 Minor improvements for C-like and Clojure (#2064) All changed patterns are equivalent with the exception of `c-like.class-name.pattern` where the `\b` before `catch` is new.
Michael Schmidt 3e00bb9c 2019-03-07T15:22:30 Rebuilt Prism (#1794) This is a rebuilt of Prism to update minified files.
Michael Schmidt b520e1b6 2018-09-09T18:33:43 Simplify function pattern of C-like language (#1552) `/[a-z0-9_]/i` == `/\w/`
Golmote 571f2c50 2018-03-26T20:53:20 C-like: Make single-line comments greedy. Fix #1337. Make sure #1340 stays fixed.
Golmote cebacdfa 2018-03-08T23:14:40 Revert "C-like: Change order of comment patterns and make multi-line one greedy. Fix #1337" This reverts commit b98e5b9
Golmote 12c0b20a 2018-03-08T22:19:01 Decouple minus sign from number pattern in most languages. Close #1110
Golmote b98e5b9b 2018-03-07T20:53:45 C-like: Change order of comment patterns and make multi-line one greedy. Fix #1337
Golmote 5895978f 2017-10-22T14:21:31 C-like: Regexp simplification + don't use captures if not needed
Golmote 3426ed16 2017-09-09T11:47:23 C-like: Add support for unclosed block comments. Close #828
Golmote 65cbaa95 2017-05-08T13:27:57 Run gulp after #1107
Andreas Rohner 2705c509 2015-09-24T19:36:10 Partial solution for the "Comment-like substrings"-problem This patch introduces a new attribute called `greedy`. The attribute is a simple boolean flag. If there is no match for a greedy pattern it can concatenate the next two tokens into a single string and try to match on this string again. If a match is found on the second attempt, then the old tokens are deleted and replaced by the new match. This solves the "Comment-like substrings"-problem for exactly one comment at very little cost. With this patch the following code is highlighted correctly: "foo /* bar */ baz"; "foo // bar"; /lala"test"sdf/; This approach fails if there are more than one comments inside the string: "foo /* bar */ baz /* bar */ baz"; Signed-off-by: Andreas Rohner <andreas.rohner@gmx.net>
Golmote 792e35cf 2015-09-16T22:38:15 C-like: optimized string regexp
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 135ee9d1 2015-08-22T23:39:15 C-like: Improved operator regex + add != and !==
Golmote aa757f6c 2015-08-21T19:05:38 C-like: add word boundary before class-name prefixes
Golmote d4194c93 2015-07-11T18:56:55 C-like: use look-ahead instead of inside to match functions
Golmote b6535ddb 2015-07-10T08:07:05 C-like: removed unused 'ignore' pattern.
Golmote 15760e18 2015-07-08T20:23:32 C-like and CSS: Fixes for \r\n
Golmote 670d5afe 2015-06-28T02:33:28 Regression fix: do not allow multi-line strings in C-like (unless properly escaped)
Golmote 476cbf42 2015-06-20T20:06:39 Improved regex performance of C-like strings and JS regexps
Golmote 2781c8b9 2015-04-10T21:36:06 Allow empty single-like comments. Fix #564
Golmote b1fd5bdc 2015-03-10T08:27:53 Removed unused global flag in all grammars
Golmote 0ad98acc 2015-03-10T08:01:29 Simplify C-Like comment pattern
Golmote 3d555850 2015-01-11T20:46:33 Run gulp
Golmote c8e3c2d7 2015-01-09T08:11:48 Run gulp
Golmote 3aeecb5a 2014-12-10T23:21:22 Add multiline strings support to C-like
Andreas Rohner e348e602 2014-08-12T12:11:31 Add auto generated files
Ben Briggs 7cfd29a9 2014-05-26T11:20:55 Rebuild minified files.
Lea Verou eb65c68b 2014-05-24T14:13:36 Generated minified versions & prism.js after merging #258
Lea Verou 36471491 2014-04-21T13:36:32 Updated minified files
Bart Veneman 3c9155e6 2013-08-04T10:52:21 Added throw keyword to c-like and javascript
Fabian Giesen a418b1a8 2013-07-25T19:25:51 C-like: Allow '+' in exponents.
Miles Johnson 29e51df1 2013-07-03T12:16:14 Fixed clike greater than or equals
Miles Johnson 50485867 2013-07-03T02:22:27 Added min versions
Miles Johnson 0c8c1789 2013-07-02T18:18:07 Quick fixes Removed PHP from examples
Miles Johnson a2db2b5c 2013-07-02T16:54:46 Added legit markup support
Lea Verou 08143d9f 2013-05-19T00:12:57 Merge branch 'regex-number' of https://github.com/mseeboeck/prism into mseeboeck-regex-number Conflicts: components/prism-clike.js components/prism-clike.min.js prism.js
Miles Johnson 3129ed87 2013-05-17T16:57:08 More example testing
Miles Johnson 45a54837 2013-05-16T21:08:06 Moved function to clike
Miles Johnson b1003de3 2013-05-16T12:19:58 More improvements and testing
Miles Johnson 5f2d004c 2013-05-14T12:05:57 Added min files
Nicolas Gryman 503209ac 2013-03-25T23:33:17 fixed URLs in strings.
mseeboeck ad010eac 2012-12-18T00:18:43 Changed regex Prism.languages.clike.number Changes: * Variable names matching /[a-f]+/ are no longer treated as numbers. * Added support for upper case and scientific notation. * Also changed corresponding files in /components. Minor issues: * No support for type suffixes (e.g. 300f for float). * Leading decimal point is marked up as 'punctuation', instead as part of * the number (e.g. .1; 0.1 is matched correctly).
Lea Verou 1cdfcb84 2012-11-11T04:25:56 Fixed #37
Lea Verou 1b40db97 2012-11-10T00:23:33 Made Java & JavaScript inherit from a generic C-style language definition; Added methods for language definition inheritance; Added simple dependency management in downloader