aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEleanor Bartle <eleanor@eleanor-nb.com>2023-02-14 08:52:45 +1100
committerStephan Seitz <stephan.seitz@fau.de>2023-02-17 14:30:42 -0800
commit2e95d25412253199796623051ed3b70c05c41f5e (patch)
tree1a5c09d1087a1a5555387529cb05c84b257bfe0b
parentAdd spelling checks to strings and comments (diff)
downloadnvim-treesitter-2e95d25412253199796623051ed3b70c05c41f5e.tar
nvim-treesitter-2e95d25412253199796623051ed3b70c05c41f5e.tar.gz
nvim-treesitter-2e95d25412253199796623051ed3b70c05c41f5e.tar.bz2
nvim-treesitter-2e95d25412253199796623051ed3b70c05c41f5e.tar.lz
nvim-treesitter-2e95d25412253199796623051ed3b70c05c41f5e.tar.xz
nvim-treesitter-2e95d25412253199796623051ed3b70c05c41f5e.tar.zst
nvim-treesitter-2e95d25412253199796623051ed3b70c05c41f5e.zip
Split out `@keyword.return`
Moves `break` and `continue` to `@repeat`. Leave coroutine keywords in `@keyword.return`. I'd really like a `@keyword.coroutine`.
-rw-r--r--queries/zig/highlights.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/queries/zig/highlights.scm b/queries/zig/highlights.scm
index d459314a4..e3e91dc65 100644
--- a/queries/zig/highlights.scm
+++ b/queries/zig/highlights.scm
@@ -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
[