mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 01:40:02 -04:00
feat!: add @keyword.coroutine capture
This commit is contained in:
parent
1bf4be0441
commit
33ba346e60
17 changed files with 137 additions and 78 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue