Skip to content

Commit 6bb0979

Browse files
committed
Make "in" operator matching case insensitive
1 parent a93212c commit 6bb0979

4 files changed

+6
-3
lines changed

syntaxes/cfscript-in-tags.sublime-syntax

+1-1
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ contexts:
535535
scope: keyword.operator.word.new.prefix.cfml
536536

537537
binary-operators:
538-
- match: \bin\b
538+
- match: \b(?i:in)\b
539539
scope: keyword.operator.binary.cfml
540540
push: expression-begin
541541
- match: '&&|\|\|'

syntaxes/cfscript.sublime-syntax

+1-1
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ contexts:
539539
scope: keyword.operator.word.new.prefix.cfml
540540

541541
binary-operators:
542-
- match: \bin\b
542+
- match: \b(?i:in)\b
543543
scope: keyword.operator.binary.cfml
544544
push: expression-begin
545545
- match: '&&|\|\|'

syntaxes/src/cfscript.sublime-syntax.yaml-macros

+1-1
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ contexts:
459459
scope: keyword.operator.word.new.prefix.cfml
460460

461461
binary-operators:
462-
- match: \bin\b
462+
- match: \b(?i:in)\b
463463
scope: keyword.operator.binary.cfml
464464
push: expression-begin
465465
- match: '&&|\|\|'

syntaxes/tests/syntax_test_cfc.cfc

+3
Original file line numberDiff line numberDiff line change
@@ -342,3 +342,6 @@ getFoo()?.getBar();
342342

343343
a = 10 mod 5;
344344
// ^^^ keyword.operator.arithmetic.binary.cfml
345+
346+
for (var ieeetype IN Dictionary().ieeetypes);
347+
// ^^ keyword.operator.binary.cfml

0 commit comments

Comments
 (0)