mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 11:50:09 -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"
|
"return"
|
||||||
"break"
|
|
||||||
"continue"
|
|
||||||
"async"
|
"async"
|
||||||
"await"
|
"await"
|
||||||
"suspend"
|
"suspend"
|
||||||
|
|
@ -128,6 +126,8 @@ field_constant: (IDENTIFIER) @constant
|
||||||
[
|
[
|
||||||
"for"
|
"for"
|
||||||
"while"
|
"while"
|
||||||
|
"break"
|
||||||
|
"continue"
|
||||||
] @repeat
|
] @repeat
|
||||||
|
|
||||||
[
|
[
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue