mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 02:10:15 -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
|
|
@ -195,14 +195,12 @@
|
|||
|
||||
[
|
||||
"return"
|
||||
"yield"
|
||||
] @keyword.return
|
||||
|
||||
|
||||
; Built in identifiers:
|
||||
; alone these are marked as keywords
|
||||
[
|
||||
"await"
|
||||
"deferred"
|
||||
"factory"
|
||||
"get"
|
||||
|
|
@ -216,17 +214,22 @@
|
|||
"typedef"
|
||||
] @keyword
|
||||
|
||||
[
|
||||
"async"
|
||||
"async*"
|
||||
"sync*"
|
||||
"await"
|
||||
"yield"
|
||||
] @keyword.coroutine
|
||||
|
||||
[
|
||||
(const_builtin)
|
||||
(final_builtin)
|
||||
"abstract"
|
||||
"async"
|
||||
"async*"
|
||||
"covariant"
|
||||
"dynamic"
|
||||
"external"
|
||||
"static"
|
||||
"sync*"
|
||||
] @type.qualifier
|
||||
|
||||
; when used as an identifier:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue