2005-07-05 22:24:04 +04:00
|
|
|
|
# Syntax rules for the C and the C++ programming languages
|
|
|
|
|
|
1999-03-21 05:02:08 +03:00
|
|
|
|
context default
|
2002-09-30 00:22:23 +04:00
|
|
|
|
keyword whole auto yellow
|
|
|
|
|
keyword whole break yellow
|
|
|
|
|
keyword whole case yellow
|
|
|
|
|
keyword whole char yellow
|
|
|
|
|
keyword whole const yellow
|
|
|
|
|
keyword whole continue yellow
|
|
|
|
|
keyword whole do yellow
|
|
|
|
|
keyword whole double yellow
|
|
|
|
|
keyword whole else yellow
|
|
|
|
|
keyword whole enum yellow
|
|
|
|
|
keyword whole extern yellow
|
|
|
|
|
keyword whole float yellow
|
|
|
|
|
keyword whole for yellow
|
|
|
|
|
keyword whole goto yellow
|
|
|
|
|
keyword whole if yellow
|
|
|
|
|
keyword whole int yellow
|
|
|
|
|
keyword whole long yellow
|
|
|
|
|
keyword whole register yellow
|
|
|
|
|
keyword whole return yellow
|
|
|
|
|
keyword whole short yellow
|
|
|
|
|
keyword whole signed yellow
|
|
|
|
|
keyword whole sizeof yellow
|
|
|
|
|
keyword whole static yellow
|
|
|
|
|
keyword whole struct yellow
|
|
|
|
|
keyword whole switch yellow
|
|
|
|
|
keyword whole typedef yellow
|
|
|
|
|
keyword whole union yellow
|
|
|
|
|
keyword whole unsigned yellow
|
|
|
|
|
keyword whole void yellow
|
|
|
|
|
keyword whole volatile yellow
|
|
|
|
|
keyword whole while yellow
|
|
|
|
|
keyword whole asm yellow
|
|
|
|
|
keyword whole inline yellow
|
|
|
|
|
keyword whole wchar_t yellow
|
|
|
|
|
keyword whole ... yellow
|
2019-02-07 21:34:46 +03:00
|
|
|
|
keyword linestart \{\s\t\}\[\s\t\]#*\n brightmagenta
|
2006-06-22 16:49:24 +04:00
|
|
|
|
keyword whole \[\s\t\]default yellow
|
|
|
|
|
keyword whole linestart \[\s\t\]\{ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz\}\[0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz\]: cyan
|
1999-03-21 05:02:08 +03:00
|
|
|
|
|
2002-09-30 00:22:23 +04:00
|
|
|
|
keyword /\* brown
|
|
|
|
|
keyword \*/ brown
|
|
|
|
|
keyword // brown
|
1999-03-21 05:02:08 +03:00
|
|
|
|
|
2002-09-30 00:22:23 +04:00
|
|
|
|
keyword '\\\{"abtnvfr\}' brightgreen
|
|
|
|
|
keyword '\\\{0123\}\{01234567\}\{01234567\}' brightgreen
|
|
|
|
|
keyword '\\'' brightgreen
|
|
|
|
|
keyword '\\\\' brightgreen
|
|
|
|
|
keyword '\\0' brightgreen
|
|
|
|
|
keyword '\{\s!"#$%&()\*\+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~<7E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\}' brightgreen
|
1999-07-21 23:56:42 +04:00
|
|
|
|
|
2005-05-01 18:21:02 +04:00
|
|
|
|
# punctuation characters, sorted by ASCII code
|
|
|
|
|
keyword ! yellow
|
2002-09-30 00:22:23 +04:00
|
|
|
|
keyword % yellow
|
2005-07-04 00:09:29 +04:00
|
|
|
|
keyword && yellow
|
|
|
|
|
keyword & brightmagenta
|
2002-09-30 00:22:23 +04:00
|
|
|
|
keyword ( brightcyan
|
|
|
|
|
keyword ) brightcyan
|
2005-05-01 18:21:02 +04:00
|
|
|
|
keyword \* yellow
|
|
|
|
|
keyword \+ yellow
|
2002-09-30 00:22:23 +04:00
|
|
|
|
keyword , brightcyan
|
2005-05-01 18:21:02 +04:00
|
|
|
|
keyword - yellow
|
|
|
|
|
keyword / yellow
|
2002-09-30 00:22:23 +04:00
|
|
|
|
keyword : brightcyan
|
|
|
|
|
keyword ; brightmagenta
|
2005-05-01 18:21:02 +04:00
|
|
|
|
keyword < yellow
|
|
|
|
|
keyword = yellow
|
|
|
|
|
keyword > yellow
|
|
|
|
|
keyword ? brightcyan
|
|
|
|
|
keyword [ brightcyan
|
|
|
|
|
keyword ] brightcyan
|
2005-07-04 00:09:29 +04:00
|
|
|
|
keyword ^ brightmagenta
|
2005-05-01 18:21:02 +04:00
|
|
|
|
keyword { brightcyan
|
2005-07-04 00:09:29 +04:00
|
|
|
|
keyword || yellow
|
|
|
|
|
keyword | brightmagenta
|
2005-05-01 18:21:02 +04:00
|
|
|
|
keyword } brightcyan
|
2005-07-04 00:09:29 +04:00
|
|
|
|
keyword ~ brightmagenta
|
2002-09-26 10:20:55 +04:00
|
|
|
|
|
2002-09-30 00:22:23 +04:00
|
|
|
|
context exclusive /\* \*/ brown
|
1999-07-21 23:56:42 +04:00
|
|
|
|
spellcheck
|
2002-09-26 10:20:55 +04:00
|
|
|
|
|
2002-09-30 00:22:23 +04:00
|
|
|
|
context exclusive // \n brown
|
1999-07-21 23:56:42 +04:00
|
|
|
|
spellcheck
|
2002-09-26 10:20:55 +04:00
|
|
|
|
|
2002-09-30 00:22:23 +04:00
|
|
|
|
context linestart # \n brightred
|
|
|
|
|
keyword \\\n yellow
|
|
|
|
|
keyword /\**\*/ brown
|
2003-02-18 11:03:13 +03:00
|
|
|
|
keyword //*\n brown
|
2002-09-30 00:22:23 +04:00
|
|
|
|
keyword "+" red
|
|
|
|
|
keyword <+> red
|
2002-09-26 10:20:55 +04:00
|
|
|
|
|
2002-09-30 00:22:23 +04:00
|
|
|
|
context " " green
|
1999-07-21 23:56:42 +04:00
|
|
|
|
spellcheck
|
2002-09-30 00:22:23 +04:00
|
|
|
|
keyword \\" brightgreen
|
|
|
|
|
keyword %% brightgreen
|
|
|
|
|
keyword %\[#0\s-\+,\]\[0123456789\*\]\[.\]\[0123456789\*\]\[L\]\{eEfgGoxX\} brightgreen
|
2003-03-15 07:41:19 +03:00
|
|
|
|
keyword %\[0\s-\+,\]\[0123456789\*\]\[.\]\[0123456789\*\]\[hl\]\{diuxX\} brightgreen
|
2002-09-30 00:22:23 +04:00
|
|
|
|
keyword %\[hl\]n brightgreen
|
|
|
|
|
keyword %\[-\]\[0123456789\*\]\[.\]\[0123456789\*\]s brightgreen
|
|
|
|
|
keyword %[*] brightgreen
|
|
|
|
|
keyword %c brightgreen
|
|
|
|
|
keyword %p brightgreen
|
|
|
|
|
keyword \\\{0123\}\{01234567\}\{01234567\} brightgreen
|
|
|
|
|
keyword \\\\ brightgreen
|
|
|
|
|
keyword \\' brightgreen
|
|
|
|
|
keyword \\\{abtnvfr\} brightgreen
|