Skip to content

Commit 1b79b23

Browse files
committed
Comments can now start with whitespace
1 parent 42495b1 commit 1b79b23

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

client/src/syntaxes/vba.tmLanguage.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -417,13 +417,13 @@ repository:
417417
# The sub-pattern consumes the \n if preceded by line continuation.
418418
# Capturing it there prevents the end pattern being matched.
419419
name: comment.block.vba
420-
begin: (?i)'.*\s_\s*
420+
begin: (?i)\s*'.*\s_\s*
421421
end: \n
422422
patterns:
423423
- include: "#lineContinuation"
424424
apostropheComments:
425-
name: comment.line.apostrophe.vba
426-
match: (?i)'.*
425+
name: comment.line.apostropheXX.vba
426+
match: (?i)\s*'.*
427427
remarkComments:
428428
name: comment.line.remark.vba
429429
match: (?i)(?<=^|:)\s*Rem\b.*

0 commit comments

Comments
 (0)