diff --git a/Batch File/Batch File.sublime-syntax b/Batch File/Batch File.sublime-syntax index 1c89bb3173..357bdc4e8f 100644 --- a/Batch File/Batch File.sublime-syntax +++ b/Batch File/Batch File.sublime-syntax @@ -48,7 +48,7 @@ variables: eoc: (?=\s*{{eoc_char}}) eoc_char: '[\n|&]' - label_comment: ':[^{{label_start}}]' + label_comment: ':+[^{{label_start}}]' label_start: '[^{{metachar}}:+]' path_terminator_chars: '[\s,;"{{redir_or_eoc_char}}]' diff --git a/Batch File/tests/syntax_test_batch_file.bat b/Batch File/tests/syntax_test_batch_file.bat index 0e2258284e..48bb5676f4 100644 --- a/Batch File/tests/syntax_test_batch_file.bat +++ b/Batch File/tests/syntax_test_batch_file.bat @@ -59,6 +59,10 @@ continuation :: <- - comment :: ^^^^^^^^^ - comment + ::: Me too! +:: ^^^ punctuation.definition.comment.dosbatch +:: ^^^^^^^^^^^ comment.line.colon.dosbatch + :: Me too! :: ^^ punctuation.definition.comment.dosbatch :: ^^^^^^^^^^ comment.line.colon.dosbatch