mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 11:06:54 -04:00
fix(ruby): improve highlights for pattern matching and for...in loops
This commit is contained in:
parent
46c16d89a8
commit
86cf4fb684
1 changed files with 9 additions and 0 deletions
|
|
@ -48,6 +48,9 @@
|
||||||
"then"
|
"then"
|
||||||
] @keyword.conditional
|
] @keyword.conditional
|
||||||
|
|
||||||
|
(in_clause
|
||||||
|
"in" @keyword.conditional)
|
||||||
|
|
||||||
(if
|
(if
|
||||||
"end" @keyword.conditional)
|
"end" @keyword.conditional)
|
||||||
|
|
||||||
|
|
@ -61,6 +64,9 @@
|
||||||
"next"
|
"next"
|
||||||
] @keyword.repeat
|
] @keyword.repeat
|
||||||
|
|
||||||
|
(in
|
||||||
|
"in" @keyword.repeat)
|
||||||
|
|
||||||
(constant) @constant
|
(constant) @constant
|
||||||
|
|
||||||
((identifier) @keyword.modifier
|
((identifier) @keyword.modifier
|
||||||
|
|
@ -291,6 +297,9 @@
|
||||||
(pair
|
(pair
|
||||||
":" @punctuation.delimiter)
|
":" @punctuation.delimiter)
|
||||||
|
|
||||||
|
(keyword_pattern
|
||||||
|
":" @punctuation.delimiter)
|
||||||
|
|
||||||
[
|
[
|
||||||
"("
|
"("
|
||||||
")"
|
")"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue