Skip to content

Commit 460009d

Browse files
committed
Add await keyword
1 parent 62a9d3c commit 460009d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CoffeeScript.sublime-syntax

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ contexts:
314314
- match: while(?!\s*:)\b
315315
scope: keyword.control.loop.while.coffee
316316
# flow
317-
- match: (?:break|continue|return|throw|yield(?:\s+from)?)(?!\s*:)\b
317+
- match: (?:await|break|continue|return|throw|yield(?:\s+from)?)(?!\s*:)\b
318318
scope: keyword.control.flow.coffee
319319
# other
320320
- match: (?:debugger\b|\\)

tests/syntax_test_scope.coffee

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,11 @@ class App.Router extends Snakeskin.Router
236236
# ^^^^^^^^^^ keyword.control.flow.coffee
237237
# ^^^^ variable.other.readwrite.instance.coffee
238238

239+
await return @foo;
240+
# ^^^^^ keyword.control.flow.coffee
241+
# ^^^^^^ keyword.control.flow.coffee
242+
# ^^^^ variable.other.readwrite.instance.coffee
243+
239244
###[ OPERATORS ]###############################################################
240245

241246
as

0 commit comments

Comments
 (0)