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