mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-05 04:50:03 -04:00
Split out @keyword.return
Moves `break` and `continue` to `@repeat`. Leave coroutine keywords in `@keyword.return`. I'd really like a `@keyword.coroutine`.
This commit is contained in:
parent
9a0e095eba
commit
2e95d25412
1 changed files with 2 additions and 2 deletions
|
|
@ -111,8 +111,6 @@ field_constant: (IDENTIFIER) @constant
|
|||
|
||||
[
|
||||
"return"
|
||||
"break"
|
||||
"continue"
|
||||
"async"
|
||||
"await"
|
||||
"suspend"
|
||||
|
|
@ -128,6 +126,8 @@ field_constant: (IDENTIFIER) @constant
|
|||
[
|
||||
"for"
|
||||
"while"
|
||||
"break"
|
||||
"continue"
|
||||
] @repeat
|
||||
|
||||
[
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue