-
Notifications
You must be signed in to change notification settings - Fork 10
/
cpp.schclass
437 lines (399 loc) · 12.1 KB
/
cpp.schclass
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
//=======================================================================
//================ Lex class support ====================================
//=======================================================================
// lexClass:
// name = c_CPPString
// parent = c_CPP
// parent:dyn = c_CPP
// parent:file = <*.c|*.cpp|*.h|*.inl|*.tli|*.tlh|*.rc|*.rc2>
//
// children = 0
// children = class1, class2, ...
//
// previous:class =
// previous:tag =
// previous:tag:separators =
//
// start:class =
// start:Tag = '"'
//
// skip:Tag = '\"'
//
// end:class = //
// end:Tag = '"'
// end:separators = ' '
//
// Token:tag = 'if', 'for', 'while', 'do'
// Token:start:separators =
// Token:end:separators =
//-----------------------------------------------------------------------
//---------------- Attributes -------------------------------------------
//-----------------------------------------------------------------------
// txt:colorFG = 0xffc0c0 // color value in hex format. default: black
// txt:colorBK = 0xffc0c0 // color value in hex format. default: white
//
// txt:colorSelFG = 0xffc0c0 // color value in hex format. default: white
// txt:colorSelBK = 0xffc0c0 // color value in hex format. default: black
//
// txt:Bold = 1 // {1,0} default: 0
// txt:Italic = 1 // {1,0} default: 0
// txt:Underline = 1 // {1,0} default: 0
//
// caseSensitive = 1 // {1,0} default: 0
//
// Collapsable = 1 // {1,0} default: 0
// CollapsedText = '/*...*/' // quoted string value. default: '[..]'
//
// ParseOnScreen = 1 // {1,0} default: 0
//
//-----------------------------------------------------------------------
//* Global attributes ***************************************************
//-----------------------------------------------------------------------
// global:FirstParseInSeparateThread = 1 // {0,1} default=1
// global:EditReparceInSeparateThread = 1 // {0,1} default=1
// global:ConfigChangedReparceInSeparateThread= 1 // {0,1} default=1
// global:EditReparceTimeout_ms = 500 // default= 500 ms; time out for start reparse after last key was pressed.
// global:MaxBackParseOffset = 100 // default= 100 chars; maximum back buffer size. Some times parser look back for the text from current position.
// global:OnScreenSchCacheLifeTime_sec = 180 // default= 180 sec; -1 and 0 means infinite; time out for on screen parsed pices of text. for memory using optimization.
// global:ParserThreadIdleLifeTime_sec = 60 // default=60 sec; -1 and 0 means infinite; time out for existing of parser thread when parser idle (no parse requests).
/////////////////////////////////////////////////////////////////////////
//=======================================================================
//================ Variables support ====================================
//=======================================================================
// NON operation - example: @alpha:not
//
// @alpha = a-z, A-Z
// @digit = 0-9
// @HexDdigit = 0-9, a-f, A-F
// @specs = "~`!@#$%^&*()_-+=\\|{}[];:'\",.<>/?"
// @EOL = End Of Line
//---------------------------------------------
// special tags: '\\', '\'', '\t', '\r', '\n'
/////////////////////////////////////////////////////////////////////////
lexClass:
name = c_CPP
parent:file = <*.c|*.cpp|*.h|*.inl|*.tli|*.tlh|*.rc|*.rc2>
caseSensitive = 1
DisplayName = 'Normal Text'
//global:FirstParseInSeparateThread = 0
global:EditReparceInSeparateThread = 1
//global:EditReparceTimeout_ms = 250
//global:MaxBackParseOffset = 100
//global:OnScreenSchCacheLifeTime_sec = 60
//global:ParserThreadIdleLifeTime_sec = -1
txt:colorSelBK = 0x264F79
txt:colorSelFG = 0xC8C8C8
txt:colorBK = 0x1E1E1E
txt:colorFG = 0xC8C8C8
lexClass:
name = c_CPPCodeBlock
parent:dyn = c_CPP, c_CPPCodeBlock
start:Tag = '{'
end:tag = '}'
Collapsable = 1
CollapsedText = '...'
DisplayName = 'Curly Braces'
lexClass:
name = c_URL
ParseOnScreen = 0
parent:dyn = c_CPP, c_CPPCodeBlock
caseSensitive = 0
children = 0
previous:tag = @specs, ' ', '\t', @eol
start:Tag = 'http:'
end:separators = ' ', '\t', '*', '"', @eol
txt:colorBK = 0xC0FFC0
txt:Underline = 1
DisplayName = 'URL'
lexClass:
name = c_String
parent:dyn = c_CPP, c_CPPCodeBlock
children = c_URL
start:Tag = '"'
skip:Tag = '\\"', '\\\r\n', '\\\n\r', '\\\n', '\\\r'
end:Tag = '"', @eol
txt:colorFG = 0xD3A181
DisplayName = 'String (Double Quotes)'
lexClass:
name = c_String_char
parent:dyn = c_CPP, c_CPPCodeBlock
children = 0
start:Tag = '\''
//skip:Tag = '\\"', '\\\r\n', '\\\n\r', '\\\n', '\\\r'
end:Tag = '\'', @eol
txt:colorFG = 0xD3A181
DisplayName = 'String (Single Quotes)'
lexClass:
name = c_Str_include
parent:dyn = c_CPP, c_CPPCodeBlock
children = 0
previous:tag = '#include'
previous:tag:separators = ' ', '\t'
start:Tag = '<'
end:Tag = '>', @eol
txt:colorFG = 0xD3A181
DisplayName = 'String (Include File)'
lexClass:
name = c_CPPCommentML
parent:dyn = c_CPP, c_CPPCodeBlock
children = c_URL
start:Tag ='/*'
end:Tag ='*/'
Collapsable = 1
CollapsedText = '/**/'
txt:colorFG = 0x5D8A45
DisplayName = 'Comment (Multi-Line)'
lexClass:
name = c_CPPAfxInsertBlock_Start
parent = c_CPP, c_CPPCodeBlock
children = 0
start:Tag = '//{{AFX'
end:Separators = @eol
txt:colorFG = 0x5D8A45
DisplayName = 'Afx Comment Block (start)'
lexClass:
name = c_CPPAfxInsertBlock_End
parent = c_CPP, c_CPPCodeBlock, c_CPPAfxInsertBlock
children = 0
start:Tag = '//}}AFX'
end:Separators = @eol
txt:colorFG = 0x5D8A45
DisplayName = 'Afx Comment Block (end)'
lexClass:
name = c_CPPAfxInsertBlock
parent = c_CPP, c_CPPCodeBlock
children = c_CPPAfxInsertBlock_End
start:CLASS = c_CPPAfxInsertBlock_Start
end:CLASS = c_CPPAfxInsertBlock_End
Collapsable = 1
txt:colorFG = 0x909090
DisplayName = 'Afx Comment Block'
lexClass:
name = c_CPPCommentSL
// ParseOnScreen = 0
parent = c_CPP, c_CPPCodeBlock
children = c_URL
start:tag ='//'
skip:Tag = '\\\r\n', '\\\n\r', '\\\n', '\\\r'
end:tag = @eol
txt:colorFG = 0x5D8A45
DisplayName = 'Comment (Single-Line)'
lexClass:
name = c_CPPPounds
ParseOnScreen = 0
parent:Dyn = c_CPP, c_CPPCodeBlock
children = 0
DisplayName = 'Pounds'
token:tag = '#define'
token:tag = '#elif'
token:tag = '#else'
token:tag = '#endif'
token:tag = '#error'
token:tag = '#if'
token:tag = '#ifdef'
token:tag = '#ifndef'
token:tag = '#import'
token:tag = '#include'
token:tag = '#line'
token:tag = '#pragma'
token:tag = '#undef'
token:start:separators = ' ', '\t', ':', ';', '!', '(', ')', ',', '/', '{', '}', @eol
token:end:separators = ' ', '\t', ':', ';', '!', '(', ')', '{', '}', @eol
txt:colorFG = 0x939BA4
lexClass:
name = c_CPPKeywords
ParseOnScreen = 0
parent:Dyn = c_CPP, c_CPPCodeBlock
children = 0
DisplayName = 'Keyword'
token:tag = '#define'
token:tag = '#elif'
token:tag = '#else'
token:tag = '#endif'
token:tag = '#error'
token:tag = '#if'
token:tag = '#ifdef'
token:tag = '#ifndef'
token:tag = '#import'
token:tag = '#include'
token:tag = '#line'
token:tag = '#pragma'
token:tag = '#undef'
token:tag = '__asm'
token:tag = '__assume'
token:tag = '__based'
token:tag = '__cdecl'
token:tag = '__declspec'
token:tag = '__except'
token:tag = '__fastcall'
token:tag = '__finally'
token:tag = '__inline'
token:tag = '__int16'
token:tag = '__int32'
token:tag = '__int64'
token:tag = '__int8'
token:tag = '__leave'
token:tag = '__multiple_inheritance'
token:tag = '__single_inheritance'
token:tag = '__stdcall'
token:tag = '__try'
token:tag = '__uuidof'
token:tag = '__virtual_inheritance'
token:tag = '_DEBUG'
token:tag = '__FILE__'
token:tag = 'DEBUG_NEW'
token:tag = 'auto'
token:tag = 'bool'
token:tag = 'break'
token:tag = 'case'
token:tag = 'catch'
token:tag = 'char'
token:tag = 'class'
token:tag = 'const'
token:tag = 'const_cast'
token:tag = 'continue'
token:tag = 'default'
token:tag = 'defined'
token:tag = 'delete'
token:tag = 'do'
token:tag = 'double'
token:tag = 'dynamic_cast'
token:tag = 'else'
token:tag = 'enum'
token:tag = 'explicit'
token:tag = 'extern'
token:tag = 'float'
token:tag = 'for'
token:tag = 'friend'
token:tag = 'goto'
token:tag = 'if'
token:tag = 'inline'
token:tag = 'int'
token:tag = 'long'
token:tag = 'mutable'
token:tag = 'namespace'
token:tag = 'new'
token:tag = 'operator'
token:tag = 'private'
token:tag = 'protected'
token:tag = 'public'
token:tag = 'register'
token:tag = 'reinterpret_cast'
token:tag = 'return'
token:tag = 'short'
token:tag = 'signed'
token:tag = 'sizeof'
token:tag = 'static'
token:tag = 'static_cast'
token:tag = 'struct'
token:tag = 'switch'
token:tag = 'template'
token:tag = 'this'
token:tag = 'throw'
token:tag = 'try'
token:tag = 'typedef'
token:tag = 'typeid'
token:tag = 'typename'
token:tag = 'union'
token:tag = 'unsigned'
token:tag = 'using'
token:tag = 'virtual'
token:tag = 'void'
token:tag = 'volatile'
token:tag = 'while'
token:tag = 'wmain'
token:start:separators = ' ', '\t', ':', ';', '!', '(', ')', ',', '/', '{', '}', @eol
token:end:separators = ' ', '\t', ':', ';', '!', '(', ')', '{', '}', @eol
txt:colorFG = 0x5B99D7
lexClass:
name = c_CPPDataValues
ParseOnScreen = 0
parent:Dyn = c_CPP, c_CPPCodeBlock
children = 0
DisplayName = 'Data Values'
token:tag = 'FALSE'
token:tag = 'TRUE'
token:tag = 'NULL'
token:start:separators = ' ', '\t', ':', ';', '!', '(', ')', ',', '/', '{', '}', @eol
token:end:separators = ' ', '\t', ':', ';', '!', '(', ')', '{', '}', @eol
txt:colorFG = 0xC065C1
txt:bold = 0
lexClass:
name = c_CPPDataTypes
ParseOnScreen = 0
parent:Dyn = c_CPP, c_CPPCodeBlock
children = 0
DisplayName = 'Data Types'
token:tag = 'CRect'
token:tag = 'BOOL'
token:tag = 'BSTR'
token:tag = 'BYTE'
token:tag = 'COLORREF'
token:tag = 'DWORD'
token:tag = 'LONG'
token:tag = 'LPARAM'
token:tag = 'LPCSTR'
token:tag = 'LPSTR'
token:tag = 'LPCTSTR'
token:tag = 'LPTSTR'
token:tag = 'LPVOID'
token:tag = 'LRESULT'
token:tag = 'UINT'
token:tag = 'WNDPROC'
token:tag = 'WORD'
token:tag = 'WPARAM'
token:tag = 'POSITION'
token:tag = 'LPCRECT'
token:start:separators = ' ', '\t', ':', ';', '!', '(', ')', ',', '/', '{', '}', @eol
token:end:separators = ' ', '\t', ':', ';', '!', '(', ')', '{', '}', @eol
txt:colorFG = 0x4DC9B1
txt:bold = 0
lexClass:
name = c_CPPMESSAGES
ParseOnScreen = 0
parent:Dyn = c_CPP, c_CPPCodeBlock
children = 0
DisplayName = 'Windows Messages and Styles'
token:tag = 'BEGIN_MESSAGE_MAP'
token:tag = 'ON_WM_CREATE'
token:tag = 'ON_WM_SIZE'
token:tag = 'ON_WM_LBUTTONDOWN'
token:tag = 'ON_WM_RBUTTONDOWN'
token:tag = 'ON_WM_LBUTTONDBLCLK'
token:tag = 'ON_WM_MOUSEWHEEL'
token:tag = 'ON_WM_KEYDOWN'
token:tag = 'ON_WM_CHAR'
token:tag = 'ON_WM_VSCROLL'
token:tag = 'ON_WM_SETCURSOR'
token:tag = 'ON_WM_PAINT'
token:tag = 'END_MESSAGE_MAP'
token:tag = 'ON_COMMAND'
token:tag = 'ON_UPDATE'
token:tag = 'ON_UPDATE_COMMAND_UI'
token:tag = 'ON_WM_SETTINGCHANGE'
token:tag = 'ON_WM_SETFOCUS'
token:tag = 'ON_COMMAND_RANGE'
token:tag = 'ON_UPDATE_COMMAND_UI_RANGE'
token:tag = 'ON_COMMAND_EX'
token:tag = 'WS_CHILD'
token:tag = 'WS_VISIBLE'
token:tag = 'WS_BORDER'
token:tag = 'CBS_SORT'
token:tag = 'WS_CLIPSIBLINGS'
token:tag = 'WS_CLIPCHILDREN'
token:tag = 'SWP_NOACTIVATE'
token:tag = 'SWP_NOZORDER'
token:tag = 'CBRS_TOOLTIPS'
token:tag = 'CBRS_FLYBY'
token:tag = 'CBRS_GRIPPER'
token:tag = 'CBRS_SIZE_DYNAMIC'
token:tag = 'CBRS_BORDER_TOP'
token:tag = 'CBRS_BORDER_BOTTOM'
token:tag = 'CBRS_BORDER_LEFT'
token:tag = 'CBRS_BORDER_RIGHT'
token:tag = 'WS_CHILD'
token:tag = 'CBS_DROPDOWNLIST'
token:start:separators = ' ', '\t', ':', ';', '!', '(', ')', ',', '/', '{', '}', @eol
token:end:separators = ' ', '\t', ':', ';', '!', '(', ')', '{', '}', @eol
txt:colorFG = 0xC065C1
txt:bold = 0