feat!: add @keyword.coroutine capture

This commit is contained in:
Amaan Qureshi 2023-02-24 06:37:45 -05:00 committed by Stephan Seitz
parent 1bf4be0441
commit 33ba346e60
17 changed files with 137 additions and 78 deletions

View file

@ -210,15 +210,15 @@
;----------
[
"if"
"else"
"switch"
"case"
"if"
"else"
"switch"
"case"
] @conditional
[
"import"
"from"
"import"
"from"
] @include
(export_specifier "as" @include)
@ -227,53 +227,56 @@
(namespace_import "as" @include)
[
"for"
"of"
"do"
"while"
"continue"
"for"
"of"
"do"
"while"
"continue"
] @repeat
[
"async"
"await"
"break"
"class"
"const"
"debugger"
"export"
"extends"
"get"
"in"
"instanceof"
"let"
"set"
"static"
"target"
"typeof"
"var"
"with"
"break"
"class"
"const"
"debugger"
"export"
"extends"
"get"
"in"
"instanceof"
"let"
"set"
"static"
"target"
"typeof"
"var"
"with"
] @keyword
[
"return"
"yield"
"async"
"await"
] @keyword.coroutine
[
"return"
"yield"
] @keyword.return
[
"function"
"function"
] @keyword.function
[
"new"
"delete"
"new"
"delete"
] @keyword.operator
[
"throw"
"try"
"catch"
"finally"
"throw"
"try"
"catch"
"finally"
] @exception
(export_statement