Skip to content

Commit 3125a5d

Browse files
authored
Merge pull request #23 from minty-boo/master
Differentiate between word/symbol logical operators
2 parents f4bfad8 + f78e47c commit 3125a5d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lua.tmLanguage.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,13 @@
196196
"name": "support.function.library.lua"
197197
},
198198
{
199-
"match": "\\b(and|or|not|\\|\\||\\&\\&|\\!)\\b",
199+
"match": "\\b(\\|\\||\\&\\&|\\!)\\b",
200200
"name": "keyword.operator.lua"
201201
},
202+
{
203+
"match": "\\b(and|or|not)\\b",
204+
"name": "keyword.operator.logical.lua"
205+
},
202206
{
203207
"match": "\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b(?=\\s*(?:[({\"']|\\[\\[))",
204208
"name": "support.function.any-method.lua"

0 commit comments

Comments
 (0)