Skip to content

Commit 3472d57

Browse files
author
ANDREW M. TRICE
committed
fixes #5 - bad regexp for quoted strings
1 parent 91eaaef commit 3472d57

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

src/syntaxes/log.tmLanguage

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,20 @@
1212
<string>Log file</string>
1313
<key>patterns</key>
1414
<array>
15+
<dict>
16+
<!-- Quoted strings with " -->
17+
<key>match</key>
18+
<string>\".*\"</string>
19+
<key>name</key>
20+
<string>token.string</string>
21+
</dict>
22+
<dict>
23+
<!-- Quoted strings with '"' -->
24+
<key>match</key>
25+
<string>\'.*\'</string>
26+
<key>name</key>
27+
<string>token.string</string>
28+
</dict>
1529
<dict>
1630
<!-- GUID -->
1731
<key>match</key>
@@ -33,13 +47,6 @@
3347
<key>name</key>
3448
<string>error-token</string>
3549
</dict>
36-
<dict>
37-
<!-- Quoted strings with ' or " -->
38-
<key>match</key>
39-
<string>"([^\\\"]+|\\.)*"|'([^\\\']+|\\.)*'</string>
40-
<key>name</key>
41-
<string>token.string</string>
42-
</dict>
4350
<dict>
4451
<!-- Date MM/DD/(YY)YY -->
4552
<key>match</key>

0 commit comments

Comments
 (0)