Skip to content

Commit

Permalink
Add await keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
deathaxe committed Aug 26, 2024
1 parent 62a9d3c commit 460009d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CoffeeScript.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ contexts:
- match: while(?!\s*:)\b
scope: keyword.control.loop.while.coffee
# flow
- match: (?:break|continue|return|throw|yield(?:\s+from)?)(?!\s*:)\b
- match: (?:await|break|continue|return|throw|yield(?:\s+from)?)(?!\s*:)\b
scope: keyword.control.flow.coffee
# other
- match: (?:debugger\b|\\)
Expand Down
5 changes: 5 additions & 0 deletions tests/syntax_test_scope.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,11 @@ class App.Router extends Snakeskin.Router
# ^^^^^^^^^^ keyword.control.flow.coffee
# ^^^^ variable.other.readwrite.instance.coffee

await return @foo;
# ^^^^^ keyword.control.flow.coffee
# ^^^^^^ keyword.control.flow.coffee
# ^^^^ variable.other.readwrite.instance.coffee

###[ OPERATORS ]###############################################################

as
Expand Down

0 comments on commit 460009d

Please sign in to comment.