fix(ruby): improve highlights for pattern matching and for...in loops

This commit is contained in:
neno
2025-12-31 23:54:37 +08:00
committed by Christian Clason
parent 46c16d89a8
commit 86cf4fb684

View File

@@ -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)
[
"("
")"