Skip to content

Commit 62be452

Browse files
committed
Fixed word keywords not being bound checked
1 parent 2f40550 commit 62be452

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

AngelScript.sublime-syntax

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ contexts:
248248
expression:
249249
- meta_scope: meta.expression
250250

251-
- match: '{{operators_words}}'
251+
- match: '\b{{operators_words}}\b'
252252
scope: keyword.operator.word
253253

254254
- include: expression-has-functioncall

syntax_test_stuff.as

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ uint g_bw = 1 | 2 | 3 & 4 & ~0xFF << 1 >> 2;
9595

9696
void bitstuff()
9797
{
98+
if (isOre && Fountain::HasEffect("no_ore")) {}
99+
// ^^^^^ variable.other
100+
98101
@(this.unit) = unit;
99102
// <- keyword.other
100103
// ^ punctuation.section.parens.begin

0 commit comments

Comments
 (0)