1 | editAreaLoader.load_syntax["c"] = { |
---|
2 | 'DISPLAY_NAME' : 'C' |
---|
3 | ,'COMMENT_SINGLE' : {1 : '//'} |
---|
4 | ,'COMMENT_MULTI' : {'/*' : '*/'} |
---|
5 | ,'QUOTEMARKS' : {1: "'", 2: '"'} |
---|
6 | ,'KEYWORD_CASE_SENSITIVE' : true |
---|
7 | ,'KEYWORDS' : { |
---|
8 | 'constants' : [ |
---|
9 | 'NULL', 'false', 'stdin', 'stdout', 'stderr', 'true' |
---|
10 | ] |
---|
11 | ,'types' : [ |
---|
12 | 'FILE', 'auto', 'char', 'const', 'double', |
---|
13 | 'extern', 'float', 'inline', 'int', 'long', 'register', |
---|
14 | 'short', 'signed', 'size_t', 'static', 'struct', |
---|
15 | 'time_t', 'typedef', 'union', 'unsigned', 'void', |
---|
16 | 'volatile' |
---|
17 | ] |
---|
18 | ,'statements' : [ |
---|
19 | 'do', 'else', 'enum', 'for', 'goto', 'if', 'sizeof', |
---|
20 | 'switch', 'while' |
---|
21 | ] |
---|
22 | ,'keywords' : [ |
---|
23 | 'break', 'case', 'continue', 'default', 'delete', |
---|
24 | 'return' |
---|
25 | ] |
---|
26 | } |
---|
27 | ,'OPERATORS' :[ |
---|
28 | '+', '-', '/', '*', '=', '<', '>', '%', '!', '?', ':', '&' |
---|
29 | ] |
---|
30 | ,'DELIMITERS' :[ |
---|
31 | '(', ')', '[', ']', '{', '}' |
---|
32 | ] |
---|
33 | ,'REGEXPS' : { |
---|
34 | 'precompiler' : { |
---|
35 | 'search' : '()(#[^\r\n]*)()' |
---|
36 | ,'class' : 'precompiler' |
---|
37 | ,'modifiers' : 'g' |
---|
38 | ,'execute' : 'before' |
---|
39 | } |
---|
40 | /* ,'precompilerstring' : { |
---|
41 | 'search' : '(#[\t ]*include[\t ]*)([^\r\n]*)([^\r\n]*[\r\n])' |
---|
42 | ,'class' : 'precompilerstring' |
---|
43 | ,'modifiers' : 'g' |
---|
44 | ,'execute' : 'before' |
---|
45 | }*/ |
---|
46 | } |
---|
47 | ,'STYLES' : { |
---|
48 | 'COMMENTS': 'color: #AAAAAA;' |
---|
49 | ,'QUOTESMARKS': 'color: #6381F8;' |
---|
50 | ,'KEYWORDS' : { |
---|
51 | 'constants' : 'color: #EE0000;' |
---|
52 | ,'types' : 'color: #0000EE;' |
---|
53 | ,'statements' : 'color: #60CA00;' |
---|
54 | ,'keywords' : 'color: #48BDDF;' |
---|
55 | } |
---|
56 | ,'OPERATORS' : 'color: #FF00FF;' |
---|
57 | ,'DELIMITERS' : 'color: #0038E1;' |
---|
58 | ,'REGEXPS' : { |
---|
59 | 'precompiler' : 'color: #009900;' |
---|
60 | ,'precompilerstring' : 'color: #994400;' |
---|
61 | } |
---|
62 | } |
---|
63 | }; |
---|