Subversion Repositories wimsdev

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

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