-
Notifications
You must be signed in to change notification settings - Fork 0
/
kdesrc-build - output.sublime-syntax
118 lines (99 loc) · 3.42 KB
/
kdesrc-build - output.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
%YAML 1.2
---
version: 2
name: kdesrc-build Output
hidden: true
scope: source.build_output.kdesrc-build
variables:
# based on Packages/JavaScript/JavaScript.sublime-syntax
identifier_part: (?:[-_\p{L}\p{Nl}\p{Mn}\p{Mc}\p{Nd}\p{Pc}])
identifier_break: (?!{{identifier_part}})
identifier: (?:{{identifier_part}}+{{identifier_break}})
file: (?:file://(.*)|(.*))
contexts:
main:
- match: '^Building ({{identifier}}) from ({{identifier}})'
captures:
1: string.unquoted.build_output.kdesrc-build
2: string.unquoted.build_output.kdesrc-build
- match: 'Fetching remote changes to ({{identifier}})'
captures:
1: string.unquoted.build_output.kdesrc-build
- match: 'Merging ({{identifier}}) changes from branch ({{identifier}})'
captures:
1: string.unquoted.build_output.kdesrc-build
2: markup.bold.build_output.kdesrc-build
- match: 'Source update complete for ({{identifier}}):'
captures:
1: string.unquoted.build_output.kdesrc-build
2: constant.numeric.value.build_output.kdesrc-build
push:
- match: '$'
pop: 1
- match: '(\d+) files? affected'
captures:
1: constant.numeric.value.build_output.kdesrc-build
- match: (?:conflicts present|update failed)
scope: message.error
- match: 'Source update complete for ({{identifier}}):'
captures:
1: string.unquoted.build_output.kdesrc-build
- match: 'Preparing build system for ({{identifier}})'
captures:
1: string.unquoted.build_output.kdesrc-build
- match: 'Removing files in build directory for ({{identifier}})'
captures:
1: string.unquoted.build_output.kdesrc-build
- match: 'Running ({{identifier}}) targeting (.*)...'
captures:
1: string.unquoted.build_output.kdesrc-build
2: markup.bold.build_output.kdesrc-build
- match: '(?:Compiling|Installing)\.\.\.? (?:(succeeded)|(failed))'
captures:
1: string.unquoted.build_output.kdesrc-build
2: message.error
- match: 'Note: - (\d+) - compile warnings'
captures:
1: constant.numeric.value.build_output.kdesrc-build
- match: '<<< (PACKAGES SUCCESSFULLY BUILT) >>>'
captures:
1: string.unquoted.build_output.kdesrc-build
push:
- match: '^{{identifier}}'
scope: string.unquoted.build_output.kdesrc-build
- match: '^$'
pop: 1
- match: '<<< PACKAGES FAILED TO BUILD >>>'
scope: message.error
push:
- match: '^({{identifier}}) -'
captures:
1: message.error
push: file
- match: '^$'
pop: 1
- match: 'Important notification for ({{identifier}})'
scope: message.error
captures:
1: entity.name.constant.build_output.kdesrc-build
push:
- match: '\s*({{identifier}}) has failed to build (\d+) times.'
captures:
1: entity.name.constant.build_output.kdesrc-build
2: markup.bold.build_output.kdesrc-build
- match: '^$'
pop: 1
- match: '^:-\)'
scope: string.unquoted.build_output.kdesrc-build
- match: '^:-\('
scope: message.error
- match: 'Your logs are saved in'
push: file
file:
- match: '\s*(?:file://(.*)|(.*))$'
captures:
1: entity.name.filename
2: entity.name.filename
pop: 1
- match: ''
pop: 1