PluginProbe
Wp-Insert / 1.7.2
Wp-Insert v1.7.2
trunk 1.0 1.1 1.2 1.2.1 1.2.2 1.3.0 1.3.1 1.3.3 1.4 1.5.0 1.5.1 1.5.2 1.5.3 1.6.0 1.6.1 1.6.2 1.7 1.7.1 1.7.2 1.7.3 1.7.4 1.7.5 1.7.6 2.0 All 63 releases
wp-insert / editarea / reg_syntax / c.js

c.js in Wp-Insert 1.7.2, at editarea/reg_syntax/c.js

64 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 };
64