PluginProbe
Wp-Insert / 1.7.6
Wp-Insert v1.7.6
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 / cpp.js

cpp.js in Wp-Insert 1.7.6, at editarea/reg_syntax/cpp.js

67 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 editAreaLoader.load_syntax["cpp"] = {
2 'DISPLAY_NAME' : 'CPP'
3 ,'COMMENT_SINGLE' : {1 : '//'}
4 ,'COMMENT_MULTI' : {'/*' : '*/'}
5 ,'QUOTEMARKS' : {1: "'", 2: '"'}
6 ,'KEYWORD_CASE_SENSITIVE' : true
7 ,'KEYWORDS' : {
8 'constants' : [
9 'NULL', 'false', 'std', 'stdin', 'stdout', 'stderr',
10 'true'
11 ]
12 ,'types' : [
13 'FILE', 'auto', 'char', 'class', 'const', 'double',
14 'extern', 'float', 'friend', 'inline', 'int',
15 'iterator', 'long', 'map', 'operator', 'queue',
16 'register', 'short', 'signed', 'size_t', 'stack',
17 'static', 'string', 'struct', 'time_t', 'typedef',
18 'union', 'unsigned', 'vector', 'void', 'volatile'
19 ]
20 ,'statements' : [
21 'catch', 'do', 'else', 'enum', 'for', 'goto', 'if',
22 'sizeof', 'switch', 'this', 'throw', 'try', 'while'
23 ]
24 ,'keywords' : [
25 'break', 'case', 'continue', 'default', 'delete',
26 'namespace', 'new', 'private', 'protected', 'public',
27 'return', 'using'
28 ]
29 }
30 ,'OPERATORS' :[
31 '+', '-', '/', '*', '=', '<', '>', '%', '!', '?', ':', '&'
32 ]
33 ,'DELIMITERS' :[
34 '(', ')', '[', ']', '{', '}'
35 ]
36 ,'REGEXPS' : {
37 'precompiler' : {
38 'search' : '()(#[^\r\n]*)()'
39 ,'class' : 'precompiler'
40 ,'modifiers' : 'g'
41 ,'execute' : 'before'
42 }
43 /* ,'precompilerstring' : {
44 'search' : '(#[\t ]*include[\t ]*)([^\r\n]*)([^\r\n]*[\r\n])'
45 ,'class' : 'precompilerstring'
46 ,'modifiers' : 'g'
47 ,'execute' : 'before'
48 }*/
49 }
50 ,'STYLES' : {
51 'COMMENTS': 'color: #AAAAAA;'
52 ,'QUOTESMARKS': 'color: #6381F8;'
53 ,'KEYWORDS' : {
54 'constants' : 'color: #EE0000;'
55 ,'types' : 'color: #0000EE;'
56 ,'statements' : 'color: #60CA00;'
57 ,'keywords' : 'color: #48BDDF;'
58 }
59 ,'OPERATORS' : 'color: #FF00FF;'
60 ,'DELIMITERS' : 'color: #0038E1;'
61 ,'REGEXPS' : {
62 'precompiler' : 'color: #009900;'
63 ,'precompilerstring' : 'color: #994400;'
64 }
65 }
66 };
67