forked from phil65/KodiDevKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
KodiLog.sublime-syntax
63 lines (59 loc) · 2 KB
/
KodiLog.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
%YAML 1.2
---
name: Kodi Log
file_extensions: [log, LOG]
scope: text.kodilog
contexts:
main:
- match: ^([0-9]{2}):([0-9]{2}):([0-9]{2})
scope: keyword.date
- match: \b(WARNING)\b
scope: constant.character.escape
- match: \b(ERROR)\b
scope: invalid.illegal
- match: \b(NOTICE)\b
scope: entity.name.function
- match: \b([a-z])+(\.\w+)+[:]
scope: keyword.control.import
- match: ([a-z]*):\/\/([\w\-_]+(?:(?:\.[\w\-_]+)+))([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])?
scope: variable.parameter
- match: '"'
push: string
- match: 'EXCEPTION Thrown \(PythonToCppException\) : -->Python callback/script returned the following error<--'
push: exception
scope: invalid.illegal
- match: 'Exception in thread Thread-[0-9].*?'
push: exception
scope: invalid.illegal
string:
- meta_scope: string.quoted.double
- match: '"'
pop: true
- meta_scope: string.quoted.double
- match: ^([0-9]{2}):([0-9]{2}):([0-9]{2})
pop: true
exception:
- meta_scope: variable.parameter
- match: 'Traceback \(most recent call last\):'
push: traceback_content
- match: '-->End of Python script error report<--'
scope: invalid.illegal
pop: true
- match: ^([0-9]{2}):([0-9]{2}):([0-9]{2})
pop: true
traceback_content:
- meta_scope: variable.parameter2
- match: 'File "(.*?)", line (\d*), in (.*)'
scope: text.kodi.traceback
captures:
1: string.quoted
2: constant.character.escape
3: storage.type.function
- match: '(\b(?:[A-Za-z]+)Error: (.*)|SystemExit)$'
scope: text.kodi.traceback
captures:
1: storage.type.function
pop: true
- match: ^([0-9]{2}):([0-9]{2}):([0-9]{2})
scope: text.kodi.traceback
pop: true