Skip to content

Commit a04e5cc

Browse files
committed
fix: numbers that aren’t surrounded by spaces shouldn't be highlighted
1 parent b7637d1 commit a04e5cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/.vitepress/config.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,13 @@ const vitepressOptions: UserConfig = {
8585
scopeName: "source.mccmd",
8686
patterns: [{
8787
name: "constant.language.mccmd",
88-
match: "(?<=^\\/)[a-zA-Z0-9]+"
88+
match: "(?<=^\\/)\\b[a-zA-Z0-9]+\\b"
8989
}, {
9090
name: "entity.name.tag.mccmd",
9191
match: "@[aeprs](\\[.+\\])?"
9292
}, {
9393
name: "variable.mccmd",
94-
match: "-?[0-9]+"
94+
match: "(?<=\\s|^)-?[0-9]+(?=\\s|$)"
9595
}, {
9696
name: "comment.mccmd",
9797
match: "<[^>]+>"

0 commit comments

Comments
 (0)