Skip to content

Commit 6db28b9

Browse files
committed
Fixes : breaking comments
1 parent 3c50dca commit 6db28b9

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

client/src/syntaxes/vba.tmLanguage.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ repository:
1212
vbaLang:
1313
patterns:
1414
- include: "#comments"
15+
- include: "#moduleLinesWithComment"
1516
- include: "#moduleLines"
1617
- include: "#moduleHeader"
1718
- include: "#enum"
@@ -20,8 +21,17 @@ repository:
2021
- include: "#variableDeclarations"
2122
- include: "#block"
2223
repository:
24+
moduleLinesWithComment:
25+
match: ([^\n']*)?('.*(?=([^"]*"[^"]*")*[^"]*$))
26+
captures:
27+
1:
28+
patterns:
29+
- include: "#vbaLang"
30+
2:
31+
patterns:
32+
- include: "#comments"
2333
moduleLines:
24-
match: '([^\n:]*)?:(?=([^"]*"[^"]*")*[^"]*$)'
34+
match: ([^\n:]*)?:(?=([^"]*"[^"]*")*[^"]*$)
2535
captures:
2636
1:
2737
patterns:

0 commit comments

Comments
 (0)