-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
AmxxEditorConsole.sublime-syntax
52 lines (43 loc) · 1.09 KB
/
AmxxEditorConsole.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
%YAML 1.2
---
name: AmxxEditorConsole
scope: source.sma
hidden: true
contexts:
main:
# Start cooment
- match: ^(Welcome|Copyright).*
scope: console.comment
# File path
- match: ^(.*\.(sma|inc))(\(.*\)) (:)
captures:
1: console.line_path
3: console.line_num
4: console.line_path
- match: '(fatal )?(error \d*:) (.*)'
captures:
1: console.error
2: console.error
3: console.others
- match: '(warning \d*:) (.*)'
captures:
1: console.warning
2: console.others
- match: Compilation aborted\.
scope: console.error
- match: ^(Could not locate output file)(.*)(\(.*\)\.)
captures:
1: console.others
2: console.line_path
3: console.error
- match: '(^.*:)\s*(\d*) (.*)'
captures:
1: console.info
2: console.info_value
3: console.others
- match: '(^Done.)|(\d* Warning.)|(\d* Errors\.)'
scope: console.others
- match: (\[Finished in (.*)\])
captures:
1: console.finished
2: console.time