-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathintenslang session log.sublime-syntax
128 lines (124 loc) · 4.76 KB
/
intenslang session log.sublime-syntax
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
%YAML 1.2
---
name: INTENS Session log
scope: text.intenssessionlog
variables:
name: '[A-Za-z_][A-Za-z_0-9]*'
float_number: '\b([0-9][0-9_]*)(\.|(\.([0-9][0-9_]*))?([eE][+-]?([0-9][0-9_]*))?\b)'
contexts:
main:
- match: '^(Print>) (FUNC) ({{name}})(\s*(//.*)?)?$'
captures:
1: markup.bold.intenssessionlog
2: storage.type.function.intenssessionlog
3: support.function.builtin.intenssessionlog
4: comment.line.double-dash.intenssessionlog
- match: '^Print> '
scope: markup.bold.intenssessionlog
- match: '^(ERROR) (:) (ServerSocket) (-) (\d+) (-) (.*)'
captures:
1: keyword.control.intenssessionlog
2: punctuation.separator.intenssessionlog
3: support.type.intenssessionlog
4: punctuation.separator.intenssessionlog
5: constant.numeric.intenssessionlog
6: punctuation.separator.intenssessionlog
7: markup.italic.intenssessionlog
- match: '^(\d\d\d\d)(-)(\d\d)(-)(\d\d \d\d)(:)(\d\d)(:)(\d\d[ ]?)(:)'
captures:
1: markup.bold.intenssessionlog
2: punctuation.separator.intenssessionlog
3: markup.bold.intenssessionlog
4: punctuation.separator.intenssessionlog
5: markup.bold.intenssessionlog
6: punctuation.separator.intenssessionlog
7: markup.bold.intenssessionlog
8: punctuation.separator.intenssessionlog
9: markup.bold.intenssessionlog
10: punctuation.separator.intenssessionlog
push:
- match: '$'
pop: true
- match: '\bopened file\b'
scope: support.function.builtin.intenssessionlog
- match: '(ABORT) (:) (FUNCTION|PROCESSGROUP|TASK)( ({{name}}))?$'
captures:
1: keyword.control.intenssessionlog
2: punctuation.separator.intenssessionlog
3: support.function.builtin.intenssessionlog
5: support.type.intenssessionlog
- match: '(BEGIN)([ \.]:) (OPEN|SAVE) (FileStream) (.*)'
captures:
1: keyword.control.intenssessionlog
2: punctuation.separator.intenssessionlog
3: support.function.builtin.intenssessionlog
4: support.type.intenssessionlog
5: markup.italic.intenssessionlog
- match: '(END) (:) (FileStream) (.*)'
captures:
1: keyword.control.intenssessionlog
2: punctuation.separator.intenssessionlog
3: support.type.intenssessionlog
4: markup.italic.intenssessionlog
- match: '(ERROR) (:) (ClientSocket) (-) (.*)'
captures:
1: keyword.control.intenssessionlog
2: punctuation.separator.intenssessionlog
3: support.type.intenssessionlog
4: punctuation.separator.intenssessionlog
5: markup.italic.intenssessionlog
- match: 'with params'
scope: markup.italic.intenssessionlog
- match: '\['
scope: punctuation.section.brackets.begin.intenssessionlog
push:
- match: (?=$)
pop: true
- match: '\]'
scope: punctuation.section.brackets.end.intenssessionlog
pop: true
- match: \,
scope: punctuation.separator.delimiter.intenssessionlog
- include: one_line_string
- match: '(Return value) (-)?({{float_number}})'
captures:
1: keyword.control.intenssessionlog
2: constant.numeric.intenssessionlog
3: constant.numeric.intenssessionlog
- match: '(exit) (.*)'
captures:
1: markup.bold.intenssessionlog
2: markup.italic.intenssessionlog
- match: '[\.\-=#<>]{3,}'
scope: punctuation.separator.intenssessionlog
- match: '([<>]?=)\s*'
captures:
1: keyword.operator.assignment.intenssessionlog
push:
- match: '{{float_number}}'
scope: constant.numeric.intenssessionlog
- match: '\b[0-9a-f]+\b'
scope: constant.numeric.intenssessionlog
- match: '-'
scope: constant.numeric.intenssessionlog
- match: '\bnan\b'
scope: constant.numeric.intenssessionlog
- match: '<invalid>'
scope: constant.numeric.intenssessionlog
- match: '{[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}}' # GUID
scope: string.unquoted.intenssessionlog
- include: one_line_string
- match: (?=.)
pop: true
- match: $
pop: true
one_line_string:
- match: \'
scope: punctuation.definition.string.begin.intenssessionlog
push:
- meta_scope: string.quoted.single.intenssessionlog
- match: (?=$)
pop: true
- match: \'
scope: punctuation.definition.string.end.intenssessionlog
pop: true