From df4c43c57c0cf1bc7b716c1bcebbfe564a818e7d Mon Sep 17 00:00:00 2001 From: deathaxe Date: Tue, 27 Aug 2024 20:51:13 +0200 Subject: [PATCH] Add CS2 operators --- CoffeeScript.sublime-syntax | 2 +- tests/syntax_test_scope.coffee | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CoffeeScript.sublime-syntax b/CoffeeScript.sublime-syntax index c62829b..975d17a 100644 --- a/CoffeeScript.sublime-syntax +++ b/CoffeeScript.sublime-syntax @@ -368,7 +368,7 @@ contexts: # symbolic - match: (?:and|or|<<|>>>?|[-+*/%&|^])= scope: keyword.operator.assignment.augmented.coffee - - match: \+\+?|\-\-?|[*/%] + - match: \+\+?|\-\-?|\*\*?|//?|%%? scope: keyword.operator.arithmetic.coffee - match: '[=!]==?|[<>]=?' scope: keyword.operator.comparison.coffee diff --git a/tests/syntax_test_scope.coffee b/tests/syntax_test_scope.coffee index 40b2fca..eb25845 100644 --- a/tests/syntax_test_scope.coffee +++ b/tests/syntax_test_scope.coffee @@ -333,12 +333,15 @@ class App.Router extends Snakeskin.Router # ^ keyword.operator.bitwise.coffee # ^ keyword.operator.bitwise.coffee - + - * / % + + - * / % ** // %% # ^ keyword.operator.arithmetic.coffee # ^ keyword.operator.arithmetic.coffee # ^ keyword.operator.arithmetic.coffee # ^ keyword.operator.arithmetic.coffee # ^ keyword.operator.arithmetic.coffee +# ^^ keyword.operator.arithmetic.coffee +# ^^ keyword.operator.arithmetic.coffee +# ^^ keyword.operator.arithmetic.coffee = : # ^ keyword.operator.assignment.coffee