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"
|
||||
] @keyword.conditional
|
||||
|
||||
(in_clause
|
||||
"in" @keyword.conditional)
|
||||
|
||||
(if
|
||||
"end" @keyword.conditional)
|
||||
|
||||
|
|
@ -61,6 +64,9 @@
|
|||
"next"
|
||||
] @keyword.repeat
|
||||
|
||||
(in
|
||||
"in" @keyword.repeat)
|
||||
|
||||
(constant) @constant
|
||||
|
||||
((identifier) @keyword.modifier
|
||||
|
|
@ -291,6 +297,9 @@
|
|||
(pair
|
||||
":" @punctuation.delimiter)
|
||||
|
||||
(keyword_pattern
|
||||
":" @punctuation.delimiter)
|
||||
|
||||
[
|
||||
"("
|
||||
")"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue