diff --git a/syntaxes/lox.tmLanguage.json b/syntaxes/lox.tmLanguage.json index fc24ed1..5450915 100644 --- a/syntaxes/lox.tmLanguage.json +++ b/syntaxes/lox.tmLanguage.json @@ -22,6 +22,9 @@ }, { "include": "#digits" + }, + { + "include": "#operators" } ], "repository": { @@ -141,6 +144,22 @@ "match": "\\/\\/.*" } ] + }, + "operators": { + "patterns": [ + { + "match": "(==|!=|<=?|>=?)", + "name": "keyword.operator.comparison.lox" + }, + { + "match": "=", + "name": "keyword.operator.assignment.lox" + }, + { + "match": "(\\+|\\-|\\*|\\/)", + "name": "keyword.operator.arithmetic.lox" + } + ] } }, "scopeName": "source.lox"