mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-10 15:30: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
|
|
@ -95,10 +95,17 @@ field_constant: (IDENTIFIER) @constant
|
|||
"asm"
|
||||
"defer"
|
||||
"errdefer"
|
||||
"nosuspend"
|
||||
"test"
|
||||
] @keyword
|
||||
|
||||
[
|
||||
"async"
|
||||
"await"
|
||||
"suspend"
|
||||
"nosuspend"
|
||||
"resume"
|
||||
] @keyword.coroutine
|
||||
|
||||
[
|
||||
"fn"
|
||||
] @keyword.function
|
||||
|
|
@ -111,10 +118,6 @@ field_constant: (IDENTIFIER) @constant
|
|||
|
||||
[
|
||||
"return"
|
||||
"async"
|
||||
"await"
|
||||
"suspend"
|
||||
"resume"
|
||||
] @keyword.return
|
||||
|
||||
[
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue