Skip to content

Commit f6f09f4

Browse files
committed
flow build output syntax: add syntax highlighting for the basic log values from haxe + flow.
1 parent 8dd3b67 commit f6f09f4

File tree

1 file changed

+177
-0
lines changed

1 file changed

+177
-0
lines changed

flow-build-output.tmLanguage

+177
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,177 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>fileTypes</key>
6+
<array/>
7+
<key>name</key>
8+
<string>flow build output</string>
9+
<key>patterns</key>
10+
<array>
11+
<dict>
12+
<key>include</key>
13+
<string>#errors</string>
14+
</dict>
15+
<dict>
16+
<key>include</key>
17+
<string>#flow_target_line</string>
18+
</dict>
19+
<dict>
20+
<key>include</key>
21+
<string>#flow_build_info</string>
22+
</dict>
23+
<dict>
24+
<key>include</key>
25+
<string>#flow_haxe_ver</string>
26+
</dict>
27+
<dict>
28+
<key>include</key>
29+
<string>#flow_logs</string>
30+
</dict>
31+
<dict>
32+
<key>include</key>
33+
<string>#haxe_trace_line</string>
34+
</dict>
35+
</array>
36+
<key>repository</key>
37+
<dict>
38+
<key>errors</key>
39+
<dict>
40+
<key>match</key>
41+
<string>(?:(^.*[.]hx):(\d+): (?:characters|lines) (\d+)-).+
42+
</string>
43+
<key>name</key>
44+
<string>invalid.error.flow-build-output</string>
45+
</dict>
46+
<key>flow_build_info</key>
47+
<dict>
48+
<key>captures</key>
49+
<dict>
50+
<key>1</key>
51+
<dict>
52+
<key>name</key>
53+
<string>keyword.control.logging.flow</string>
54+
</dict>
55+
<key>2</key>
56+
<dict>
57+
<key>name</key>
58+
<string>meta</string>
59+
</dict>
60+
<key>3</key>
61+
<dict>
62+
<key>name</key>
63+
<string>entity.name.function.flow</string>
64+
</dict>
65+
</dict>
66+
<key>match</key>
67+
<string>^(flow \/ )(build only, )?(debug = true)</string>
68+
<key>name</key>
69+
<string>meta.logging.flow</string>
70+
</dict>
71+
<key>flow_haxe_ver</key>
72+
<dict>
73+
<key>captures</key>
74+
<dict>
75+
<key>1</key>
76+
<dict>
77+
<key>name</key>
78+
<string>keyword.control.logging.flow</string>
79+
</dict>
80+
<key>2</key>
81+
<dict>
82+
<key>name</key>
83+
<string>meta.haxe_version.flow</string>
84+
</dict>
85+
<key>3</key>
86+
<dict>
87+
<key>name</key>
88+
<string>storage.type.haxe_version.flow</string>
89+
</dict>
90+
</dict>
91+
<key>match</key>
92+
<string>^(flow \/ )(haxe version )(\d+.\d+.\d+)</string>
93+
<key>name</key>
94+
<string>meta.logging.flow</string>
95+
</dict>
96+
<key>flow_logs</key>
97+
<dict>
98+
<key>captures</key>
99+
<dict>
100+
<key>1</key>
101+
<dict>
102+
<key>name</key>
103+
<string>keyword.control.logging.flow</string>
104+
</dict>
105+
<key>2</key>
106+
<dict>
107+
<key>name</key>
108+
<string>storage.type.log_type.flow</string>
109+
</dict>
110+
<key>3</key>
111+
<dict>
112+
<key>name</key>
113+
<string>meta</string>
114+
</dict>
115+
</dict>
116+
<key>match</key>
117+
<string>^(flow \/ )(.+ - )?(.+)</string>
118+
<key>name</key>
119+
<string>meta.logging.flow</string>
120+
</dict>
121+
<key>flow_target_line</key>
122+
<dict>
123+
<key>captures</key>
124+
<dict>
125+
<key>1</key>
126+
<dict>
127+
<key>name</key>
128+
<string>keyword.control.logging.flow</string>
129+
</dict>
130+
<key>2</key>
131+
<dict>
132+
<key>name</key>
133+
<string>meta</string>
134+
</dict>
135+
<key>3</key>
136+
<dict>
137+
<key>name</key>
138+
<string>storage.type.target.flow</string>
139+
</dict>
140+
<key>4</key>
141+
<dict>
142+
<key>name</key>
143+
<string>storage.type.target_arch.flow</string>
144+
</dict>
145+
</dict>
146+
<key>match</key>
147+
<string>^(flow \/ )(target) is (mac|linux|windows|web|android) \( (.+) \)</string>
148+
<key>name</key>
149+
<string>meta.logging.flow</string>
150+
</dict>
151+
<key>haxe_trace_line</key>
152+
<dict>
153+
<key>captures</key>
154+
<dict>
155+
<key>1</key>
156+
<dict>
157+
<key>name</key>
158+
<string>storage.type.trace_filename.flow</string>
159+
</dict>
160+
<key>2</key>
161+
<dict>
162+
<key>name</key>
163+
<string>constant.numeric.flow</string>
164+
</dict>
165+
</dict>
166+
<key>match</key>
167+
<string>(.+\.hx)[:](\d+)[:]</string>
168+
<key>name</key>
169+
<string>meta.logging.flow</string>
170+
</dict>
171+
</dict>
172+
<key>scopeName</key>
173+
<string>source.flow-build-output</string>
174+
<key>uuid</key>
175+
<string>a7f13cbf-e607-408a-802f-bfa6e909d299</string>
176+
</dict>
177+
</plist>

0 commit comments

Comments
 (0)