Skip to content

Commit c7bd3e3

Browse files
committed
Fixed additional cases of incorrect highlighting.
local sound local a = nil
1 parent 4cc921d commit c7bd3e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/mta_highlighting/generate-lua-tmlanguage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ async function generateTmLanguage() {
5858

5959
if (allKeywords.length > 0) {
6060
patterns.push({
61-
match: `\\b(${allKeywords.join('|')})\\b(?!\\s*(=|;|\\(|\\[|\\)|,(?!\u200B)))`,
61+
match: `(?<!\\=\\s*)\\b(${allKeywords.join('|')})\\b(?=\\s*\\S)(?!\\s*(=|;|\\(|\\[|\\)|,(?!\u200B)))`,
6262
name: 'keyword.mta',
6363
});
6464
}

0 commit comments

Comments
 (0)