Skip to content

Commit cd909f3

Browse files
committed
comment won't highlight in some cases
1 parent 5698221 commit cd909f3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

et_script.tmLanguage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@
342342
<key>comment</key>
343343
<dict>
344344
<key>match</key>
345-
<string>\/\/\s*.*</string>
345+
<string>\s*\/\/\s*.*</string>
346346

347347
<key>name</key>
348348
<string>comment.line.double-slash</string>

q3_cfg.tmLanguage

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
<string>Comment lines</string>
2525

2626
<key>match</key>
27-
<string>//\s*(.+)*$</string>
28-
27+
<string>\s*\/\/\s*.*</string>
28+
2929
<key>name</key>
3030
<string>comment.q3cfg</string>
3131
</dict>

q3_shader.tmLanguage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@
428428
<key>comment</key>
429429
<dict>
430430
<key>match</key>
431-
<string>\/\/\s*.*</string>
431+
<string>\s*\/\/\s*.*</string>
432432

433433
<key>name</key>
434434
<string>comment.line.double-slash</string>

0 commit comments

Comments
 (0)