mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-07 22:10:01 -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
|
|
@ -159,12 +159,15 @@
|
|||
"func" @keyword.function
|
||||
|
||||
[
|
||||
"await"
|
||||
"return"
|
||||
] @keyword.return
|
||||
|
||||
(call (identifier) @keyword.return
|
||||
(#eq? @keyword.return "yield"))
|
||||
[
|
||||
"await"
|
||||
] @keyword.coroutine
|
||||
|
||||
(call (identifier) @keyword.coroutine
|
||||
(#eq? @keyword.coroutine "yield"))
|
||||
|
||||
|
||||
;; Builtins
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue