forked from Adarma/DXL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DxlBuild.YAML-tmLanguage
151 lines (129 loc) · 4.01 KB
/
DxlBuild.YAML-tmLanguage
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
# [PackageDev] target_format: plist, ext: tmLanguage
name: DxlBuild
scopeName: build.dxl
uuid: 2E90FEC0-85C6-11E3-BAA7-0800200C9A66
patterns:
- include: '#buildAbandoned'
- include: '#buildHeader'
- include: '#runDuration'
- include: '#outputError'
- include: '#outputWarning'
- include: '#outputBacktrace'
- include: '#outputColoured'
repository:
buildHeader:
patterns:
- include: '#buildHeaderExecution'
- include: '#buildHeaderPaths'
- include: '#buildHeaderIncludes'
- include: '#buildHeaderParse'
- include: '#buildHeaderDatabase'
- include: '#buildHeaderModule'
- include: '#buildHeaderUser'
buildHeaderExecution:
comment: How the Code is Executed
name: keyword.other.header.dxl
match: '^Code Execution: (.*)'
captures:
'1': {name: string.quoted.double.dxl}
buildHeaderPaths:
comment: The Relitive base paths
name: keyword.other.header.dxl
begin: '^Relitive Paths: ?'
end: '$'
patterns:
- include: '#buildHeaderPath'
buildHeaderPath:
comment: A Relitive base path
name: string.quoted.double.dxl
match: '([^;]*);?([^;]*;?)?'
captures:
'1': {name: string.quoted.double.dxl}
'2': {name: constant.numeric.dxl}
buildHeaderIncludes:
comment: #include extraced from //<Requires> directive
name: keyword.other.header.dxl
match: '^Insert Require: (.*)'
captures:
'1': {name: string.quoted.double.dxl}
buildHeaderParse:
comment: Time Taken to parse the includes and file
name: keyword.other.header.dxl
match: '^Parse Duration: ([0-9]+) (milliseconds)'
captures:
'1': {name: constant.numeric.dxl}
'2': {name: string.quoted.double.dxl}
buildHeaderDatabase:
comment: The Database Name
name: keyword.other.header.dxl
match: '^DOORS Database: (.*)'
captures:
'1': {name: string.quoted.double.dxl}
buildHeaderModule:
comment: The Current module
name: keyword.other.header.dxl
match: '^Current Module:(?: (\[[^\]]+\]) (.*) (\[[^\]]+\]))?'
captures:
'1': {name: constant.numeric.dxl}
'2': {name: string.quoted.double.dxl}
'3': {name: constant.numeric.dxl}
buildHeaderUser:
comment: The Current User Account
name: keyword.other.header.dxl
match: '^Active Account: (.*)'
captures:
'1': {name: string.quoted.double.dxl}
buildAbandoned:
comment: Error in the build output
name: sublimelinter.outline.illegal.dxl
match: ^'DOORSLOGFILE'.*
runDuration:
comment: Sublime build time suffix
name: string
match: '^\[Finished in ([0-9]+\.[0-9]+)s\]$'
captures:
'1': {name: constant.numeric}
outputError:
comment: Error in the build output
name: markup.build.error.dxl
match: '^(?:-?R?-[EF]- DXL: )<(?!Line:)(.*):([0-9]+)> ?(?:.*)'
outputWarning:
comment: Warning in the build output
name: markup.build.warning.dxl
match: '^(?:-?R?-[W]- DXL: )<(?!Line:)(.*):([0-9]+)> ?(?:.*)'
outputBacktrace:
comment: Backtrace of Errors and Warnings
name: markup.build.backtrace.dxl
match: '^(Backtrace:|\s?<(?!Line:)(.*):([0-9]+)> ?)'
outputColoured:
patterns:
- include: '#outputColouredBlue'
- include: '#outputColouredGreen'
- include: '#outputColouredOrange'
- include: '#outputColouredPurple'
- include: '#outputColouredRed'
- include: '#outputColouredYellow'
outputColouredBlue:
comment: Colour the output blue
name: storage.modifier.dxl
match: ^[Bb]:.*$
outputColouredGreen:
comment: Colour the output green
name: support.function.perm.dxl
match: ^[Gg]:.*$
outputColouredOrange:
comment: Colour the output orange
name: comment.line.continuation.dxl
match: ^[Oo]:.*$
outputColouredPurple:
comment: Colour the output purple
name: constant.numeric.dxl
match: ^[Pp]:.*$
outputColouredRed:
comment: Colour the output red
name: keyword.other.header.dxl
match: ^[Rr]:.*$
outputColouredYellow:
comment: Colour the output yellow
name: string.quoted.double.dxl
match: ^[Yy]:.*$