1 # Syntax rules for the C and the C++ programming languages
3 # List of keywords is based on opencl-mode.el from
4 # Salmane Bah <salmane.bah@u-bordeaux.fr>
8 keyword whole break yellow
9 keyword whole closure yellow
10 keyword whole color yellow
11 keyword whole continue yellow
12 keyword whole do yellow
13 keyword whole else yellow
14 keyword whole float yellow
15 keyword whole for yellow
16 keyword whole if yellow
17 keyword whole illuminance yellow
18 keyword whole illuminate yellow
19 keyword whole int yellow
20 keyword whole matrix yellow
21 keyword whole normal yellow
22 keyword whole output yellow
23 keyword whole point yellow
24 keyword whole public yellow
25 keyword whole return yellow
26 keyword whole string yellow
27 keyword whole struct yellow
28 keyword whole vector yellow
29 keyword whole void yellow
30 keyword whole while yellow
31 keyword whole or yellow
32 keyword whole and yellow
33 keyword whole not yellow
34 keyword whole linestart \{\s\t\}\[\s\t\]#*\n brightmagenta
37 keyword whole bool red
38 keyword whole case red
39 keyword whole char red
40 keyword whole class red
41 keyword whole const red
42 keyword whole default red
43 keyword whole double red
44 keyword whole enum red
45 keyword whole extern red
46 keyword whole false red
47 keyword whole friend red
48 keyword whole inline red
49 keyword whole long red
50 keyword whole private red
51 keyword whole protected red
52 keyword whole short red
53 keyword whole signed red
54 keyword whole sizeof red
55 keyword whole static red
56 keyword whole struct red
57 keyword whole switch red
58 keyword whole template red
59 keyword whole this red
60 keyword whole true red
61 keyword whole typedef red
62 keyword whole uniform red
63 keyword whole union red
64 keyword whole unsigned red
65 keyword whole varying red
66 keyword whole virtual red
69 keyword whole shader white
70 keyword whole surface white
71 keyword whole displacement white
72 keyword whole volume white
78 keyword '\\\{"abtnvfr\}' brightgreen
79 keyword '\\\{0123\}\{01234567\}\{01234567\}' brightgreen
80 keyword '\\'' brightgreen
81 keyword '\\\\' brightgreen
82 keyword '\\0' brightgreen
83 keyword '\{\s!"#$%&()\*\+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~ ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ\}' brightgreen
85 # punctuation characters, sorted by ASCII code
89 keyword & brightmagenta
98 keyword ; brightmagenta
105 keyword ^ brightmagenta
108 keyword | brightmagenta
110 keyword ~ brightmagenta
112 context exclusive /\* \*/ brown
115 context exclusive // \n brown
118 context linestart # \n brightred
120 keyword /\**\*/ brown
127 keyword \\" brightgreen
128 keyword %% brightgreen
129 keyword %\[#0\s-\+,\]\[0123456789\*\]\[.\]\[0123456789\*\]\[L\]\{eEfgGoxX\} brightgreen
130 keyword %\[0\s-\+,\]\[0123456789\*\]\[.\]\[0123456789\*\]\[hl\]\{diuxX\} brightgreen
131 keyword %\[hl\]n brightgreen
132 keyword %\[-\]\[0123456789\*\]\[.\]\[0123456789\*\]s brightgreen
133 keyword %[*] brightgreen
134 keyword %c brightgreen
135 keyword %p brightgreen
136 keyword \\\{0123\}\{01234567\}\{01234567\} brightgreen
137 keyword \\\\ brightgreen
138 keyword \\' brightgreen
139 keyword \\\{abtnvfr\} brightgreen