|
12c0b20a
|
2018-03-08T22:19:01
|
|
Decouple minus sign from number pattern in most languages. Close #1110
|
|
ffeb26e9
|
2017-10-22T14:19:33
|
|
C: Regexp optimisation + don't use captures if not needed
|
|
43412659
|
2017-09-09T12:31:19
|
|
Run gulp
|
|
e135947c
|
2015-10-10T12:48:04
|
|
Run gulp and update tests after #801 merge
|
|
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
|
|
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
|
|
48686353
|
2015-07-12T08:30:48
|
|
C: Used property as an alias for macro statements + added support for \r in macros
|
|
dcce1a78
|
2015-07-12T08:21:31
|
|
C: Removed string pattern (now that C-like supports escaped new lines) + simplified operators regexp
|
|
b1fd5bdc
|
2015-03-10T08:27:53
|
|
Removed unused global flag in all grammars
|
|
4247baec
|
2014-07-28T16:54:50
|
|
Fix conflicts.
|
|
550c81e7
|
2014-07-11T21:21:27
|
|
Fix for some serious bugs in C and C++ highlighter
< and > 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"
|
|
7cfd29a9
|
2014-05-26T11:20:55
|
|
Rebuild minified files.
|
|
36471491
|
2014-04-21T13:36:32
|
|
Updated minified files
|
|
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.
|
|
47ffc24c
|
2013-03-16T18:39:06
|
|
Add C/C++ highlighting support
|