aboutsummaryrefslogtreecommitdiffstats
path: root/queries/ruby/highlights.scm
diff options
context:
space:
mode:
authorTrey Wood <treyw@squareup.com>2023-03-31 09:43:55 -0600
committerGitHub <noreply@github.com>2023-03-31 11:43:55 -0400
commit2f3113ff6d554e3fe4da3610135c2f404f7aa270 (patch)
tree683dac762a465c8ee4ba66aca724e004339ae590 /queries/ruby/highlights.scm
parenthighlights(sql): add `full`, `any` and `some` keywords (diff)
downloadnvim-treesitter-2f3113ff6d554e3fe4da3610135c2f404f7aa270.tar
nvim-treesitter-2f3113ff6d554e3fe4da3610135c2f404f7aa270.tar.gz
nvim-treesitter-2f3113ff6d554e3fe4da3610135c2f404f7aa270.tar.bz2
nvim-treesitter-2f3113ff6d554e3fe4da3610135c2f404f7aa270.tar.lz
nvim-treesitter-2f3113ff6d554e3fe4da3610135c2f404f7aa270.tar.xz
nvim-treesitter-2f3113ff6d554e3fe4da3610135c2f404f7aa270.tar.zst
nvim-treesitter-2f3113ff6d554e3fe4da3610135c2f404f7aa270.zip
fix(ruby): then blocks should not be `@conditional`, just "then"
Diffstat (limited to 'queries/ruby/highlights.scm')
-rw-r--r--queries/ruby/highlights.scm7
1 files changed, 1 insertions, 6 deletions
diff --git a/queries/ruby/highlights.scm b/queries/ruby/highlights.scm
index 9488297b4..3ef35205c 100644
--- a/queries/ruby/highlights.scm
+++ b/queries/ruby/highlights.scm
@@ -44,16 +44,11 @@
"if"
"unless"
"when"
+ "then"
] @conditional
(if
"end" @conditional)
-(if
- (then) @conditional)
-(unless
- (then) @conditional)
-(elsif
- (then) @conditional)
[
"for"