Skip to content

Commit

Permalink
Add CS2 operators
Browse files Browse the repository at this point in the history
  • Loading branch information
deathaxe committed Aug 27, 2024
1 parent 9d7ab17 commit df4c43c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CoffeeScript.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion tests/syntax_test_scope.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit df4c43c

Please sign in to comment.