Subversion Repositories wimsdev

Rev

Rev 4870 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4870 bpr 1
editAreaLoader.load_syntax["cpp"] = {
8475 bpr 2
        'DISPLAY_NAME' : 'CPP'
3
        ,'COMMENT_SINGLE' : {1 : '//'}
4870 bpr 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
};