233
by mattgiuca
Added a shaky implementation of EditArea as the text editor. |
1 |
editAreaLoader.load_syntax["basic"] = { |
2 |
'COMMENT_SINGLE' : {1 : "'", 2 : 'rem'} |
|
3 |
,'COMMENT_MULTI' : { } |
|
4 |
,'QUOTEMARKS' : {1: '"'} |
|
5 |
,'KEYWORD_CASE_SENSITIVE' : false |
|
6 |
,'KEYWORDS' : { |
|
7 |
'statements' : [ |
|
8 |
'if','then','for','wend','while', |
|
9 |
'else','elseif','select','case','end select', |
|
10 |
'until','next','step','to','end if', 'call' |
|
11 |
]
|
|
12 |
,'keywords' : [ |
|
13 |
'sub', 'end sub', 'function', 'end function', 'exit', |
|
14 |
'exit function', 'dim', 'redim', 'shared', 'const', |
|
15 |
'is', 'absolute', 'access', 'any', 'append', 'as', |
|
16 |
'base', 'beep', 'binary', 'bload', 'bsave', 'chain', |
|
17 |
'chdir', 'circle', 'clear', 'close', 'cls', 'color', |
|
18 |
'com', 'common', 'data', 'date', 'declare', 'def', |
|
19 |
'defdbl', 'defint', 'deflng', 'defsng', 'defstr', |
|
20 |
'double', 'draw', 'environ', 'erase', 'error', 'field', |
|
21 |
'files', 'fn', 'get', 'gosub', 'goto', 'integer', 'key', |
|
22 |
'kill', 'let', 'line', 'list', 'locate', 'lock', 'long', |
|
23 |
'lprint', 'lset', 'mkdir', 'name', 'off', 'on', 'open', |
|
24 |
'option', 'out', 'output', 'paint', 'palette', 'pcopy', |
|
25 |
'poke', 'preset', 'print', 'pset', 'put', 'random', |
|
26 |
'randomize', 'read', 'reset', 'restore', 'resume', |
|
27 |
'return', 'rmdir', 'rset', 'run', 'screen', 'seg', |
|
28 |
'shell', 'single', 'sleep', 'sound', 'static', 'stop', |
|
29 |
'strig', 'string', 'swap', 'system', 'time', 'timer', |
|
30 |
'troff', 'tron', 'type', 'unlock', 'using', 'view', |
|
31 |
'wait', 'width', 'window', 'write' |
|
32 |
]
|
|
33 |
,'functions' : [ |
|
34 |
'abs', 'asc', 'atn', 'cdbl', 'chr', 'cint', 'clng', |
|
35 |
'cos', 'csng', 'csrlin', 'cvd', 'cvdmbf', 'cvi', 'cvl', |
|
36 |
'cvs', 'cvsmbf', 'eof', 'erdev', 'erl', 'err', 'exp', |
|
37 |
'fileattr', 'fix', 'fre', 'freefile', 'hex', 'inkey', |
|
38 |
'inp', 'input', 'instr', 'int', 'ioctl', 'lbound', |
|
39 |
'lcase', 'left', 'len', 'loc', 'lof', 'log', 'lpos', |
|
40 |
'ltrim', 'mid', 'mkd', 'mkdmbf', 'mki', 'mkl', 'mks', |
|
41 |
'mksmbf', 'oct', 'peek', 'pen', 'play', 'pmap', 'point', |
|
42 |
'pos', 'right', 'rnd', 'rtrim', 'seek', 'sgn', 'sin', |
|
43 |
'space', 'spc', 'sqr', 'stick', 'str', 'tab', 'tan', |
|
44 |
'ubound', 'ucase', 'val', 'varptr', 'varseg' |
|
45 |
]
|
|
46 |
,'operators' : [ |
|
47 |
'and', 'eqv', 'imp', 'mod', 'not', 'or', 'xor' |
|
48 |
]
|
|
49 |
}
|
|
50 |
,'OPERATORS' :[ |
|
51 |
'+', '-', '/', '*', '=', '<', '>', '!', '&' |
|
52 |
]
|
|
53 |
,'DELIMITERS' :[ |
|
54 |
'(', ')', '[', ']', '{', '}' |
|
55 |
]
|
|
56 |
,'STYLES' : { |
|
57 |
'COMMENTS': 'color: #99CC00;' |
|
58 |
,'QUOTESMARKS': 'color: #333399;' |
|
59 |
,'KEYWORDS' : { |
|
60 |
'keywords' : 'color: #3366FF;' |
|
61 |
,'functions' : 'color: #0000FF;' |
|
62 |
,'statements' : 'color: #3366FF;' |
|
63 |
,'operators' : 'color: #FF0000;' |
|
64 |
}
|
|
65 |
,'OPERATORS' : 'color: #FF0000;' |
|
66 |
,'DELIMITERS' : 'color: #0000FF;' |
|
67 |
||
68 |
}
|
|
69 |
};
|