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