Skip to content

Commit d3f47c9

Browse files
authored
Merge pull request #269 from harehare/fix/comment_hightlight_display2
πŸ› Fix comment highlight display
2 parents 72fee33 + 3c21475 commit d3f47c9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

β€Žeditors/vscode/mq.tmLanguage.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"patterns": [
3636
{
3737
"name": "comment.line.double-slash.mq",
38-
"match": "#.*$"
38+
"match": "#[^|]*$"
3939
}
4040
]
4141
},

β€Žpackages/playground/src/Playground.tsxβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ export const Playground = () => {
594594
[/(([a-zA-Z_]\w*)\s*\()/, "function"],
595595
[/\(|\)|\[|\]/, "delimiter.parenthesis"],
596596
[/[a-zA-Z_]\w*/, "variable"],
597-
[/ *#.*/, "comment"],
597+
[/ *#[^|]*/, "comment"],
598598
],
599599
comment: [],
600600
multilineString: [

0 commit comments

Comments
Β (0)