1 | editAreaLoader.load_syntax["pas"] = { |
---|
2 | 'DISPLAY_NAME' : 'Pascal' |
---|
3 | ,'COMMENT_SINGLE' : {} |
---|
4 | ,'COMMENT_MULTI' : {'{' : '}', '(*':'*)'} |
---|
5 | ,'QUOTEMARKS' : {1: '"', 2: "'"} |
---|
6 | ,'KEYWORD_CASE_SENSITIVE' : false |
---|
7 | ,'KEYWORDS' : { |
---|
8 | 'constants' : [ |
---|
9 | 'Blink', 'Black', 'Blue', 'Green', 'Cyan', 'Red', |
---|
10 | 'Magenta', 'Brown', 'LightGray', 'DarkGray', |
---|
11 | 'LightBlue', 'LightGreen', 'LightCyan', 'LightRed', |
---|
12 | 'LightMagenta', 'Yellow', 'White', 'MaxSIntValue', |
---|
13 | 'MaxUIntValue', 'maxint', 'maxLongint', 'maxSmallint', |
---|
14 | 'erroraddr', 'errorcode', 'LineEnding' |
---|
15 | ] |
---|
16 | ,'keywords' : [ |
---|
17 | 'in', 'or', 'div', 'mod', 'and', 'shl', 'shr', 'xor', |
---|
18 | 'pow', 'is', 'not','Absolute', 'And_then', 'Array', |
---|
19 | 'Begin', 'Bindable', 'Case', 'Const', 'Do', 'Downto', |
---|
20 | 'Else', 'End', 'Export', 'File', 'For', 'Function', |
---|
21 | 'Goto', 'If', 'Import', 'Implementation', 'Inherited', |
---|
22 | 'Inline', 'Interface', 'Label', 'Module', 'Nil', |
---|
23 | 'Object', 'Of', 'Only', 'Operator', 'Or_else', |
---|
24 | 'Otherwise', 'Packed', 'Procedure', 'Program', |
---|
25 | 'Protected', 'Qualified', 'Record', 'Repeat', |
---|
26 | 'Restricted', 'Set', 'Then', 'To', 'Type', 'Unit', |
---|
27 | 'Until', 'Uses', 'Value', 'Var', 'Virtual', 'While', |
---|
28 | 'With' |
---|
29 | ] |
---|
30 | ,'functions' : [ |
---|
31 | 'Abs', 'Addr', 'Append', 'Arctan', 'Assert', 'Assign', |
---|
32 | 'Assigned', 'BinStr', 'Blockread', 'Blockwrite', |
---|
33 | 'Break', 'Chdir', 'Chr', 'Close', 'CompareByte', |
---|
34 | 'CompareChar', 'CompareDWord', 'CompareWord', 'Concat', |
---|
35 | 'Continue', 'Copy', 'Cos', 'CSeg', 'Dec', 'Delete', |
---|
36 | 'Dispose', 'DSeg', 'Eof', 'Eoln', 'Erase', 'Exclude', |
---|
37 | 'Exit', 'Exp', 'Filepos', 'Filesize', 'FillByte', |
---|
38 | 'Fillchar', 'FillDWord', 'Fillword', 'Flush', 'Frac', |
---|
39 | 'Freemem', 'Getdir', 'Getmem', 'GetMemoryManager', |
---|
40 | 'Halt', 'HexStr', 'Hi', 'High', 'Inc', 'Include', |
---|
41 | 'IndexByte', 'IndexChar', 'IndexDWord', 'IndexWord', |
---|
42 | 'Insert', 'IsMemoryManagerSet', 'Int', 'IOresult', |
---|
43 | 'Length', 'Ln', 'Lo', 'LongJmp', 'Low', 'Lowercase', |
---|
44 | 'Mark', 'Maxavail', 'Memavail', 'Mkdir', 'Move', |
---|
45 | 'MoveChar0', 'New', 'Odd', 'OctStr', 'Ofs', 'Ord', |
---|
46 | 'Paramcount', 'Paramstr', 'Pi', 'Pos', 'Power', 'Pred', |
---|
47 | 'Ptr', 'Random', 'Randomize', 'Read', 'Readln', |
---|
48 | 'Real2Double', 'Release', 'Rename', 'Reset', 'Rewrite', |
---|
49 | 'Rmdir', 'Round', 'Runerror', 'Seek', 'SeekEof', |
---|
50 | 'SeekEoln', 'Seg', 'SetMemoryManager', 'SetJmp', |
---|
51 | 'SetLength', 'SetString', 'SetTextBuf', 'Sin', 'SizeOf', |
---|
52 | 'Sptr', 'Sqr', 'Sqrt', 'SSeg', 'Str', 'StringOfChar', |
---|
53 | 'Succ', 'Swap', 'Trunc', 'Truncate', 'Upcase', 'Val', |
---|
54 | 'Write', 'WriteLn' |
---|
55 | ] |
---|
56 | ,'types' : [ |
---|
57 | 'Integer', 'Shortint', 'SmallInt', 'Longint', |
---|
58 | 'Longword', 'Int64', 'Byte', 'Word', 'Cardinal', |
---|
59 | 'QWord', 'Boolean', 'ByteBool', 'LongBool', 'Char', |
---|
60 | 'Real', 'Single', 'Double', 'Extended', 'Comp', |
---|
61 | 'String', 'ShortString', 'AnsiString', 'PChar' |
---|
62 | ] |
---|
63 | } |
---|
64 | ,'OPERATORS' :[ |
---|
65 | '@', '*', '+', '-', '/', '^', ':=', '<', '=', '>' |
---|
66 | ] |
---|
67 | ,'DELIMITERS' :[ |
---|
68 | '(', ')', '[', ']' |
---|
69 | ] |
---|
70 | ,'STYLES' : { |
---|
71 | 'COMMENTS': 'color: #AAAAAA;' |
---|
72 | ,'QUOTESMARKS': 'color: #6381F8;' |
---|
73 | ,'KEYWORDS' : { |
---|
74 | 'specials' : 'color: #EE0000;' |
---|
75 | ,'constants' : 'color: #654321;' |
---|
76 | ,'keywords' : 'color: #48BDDF;' |
---|
77 | ,'functions' : 'color: #449922;' |
---|
78 | ,'types' : 'color: #2B60FF;' |
---|
79 | } |
---|
80 | ,'OPERATORS' : 'color: #FF00FF;' |
---|
81 | ,'DELIMITERS' : 'color: #60CA00;' |
---|
82 | } |
---|
83 | }; |
---|