refactor(ruby): move keywords appropriately

This commit is contained in:
Amaan Qureshi 2023-02-24 06:38:02 -05:00 committed by Stephan Seitz
parent 33ba346e60
commit 3c8842c79a

View file

@ -8,19 +8,13 @@
[
"alias"
"begin"
"break"
"class"
"def"
"do"
"end"
"ensure"
"module"
"next"
"redo"
"rescue"
"retry"
"then"
"undef"
] @keyword
[
@ -35,6 +29,14 @@
"not"
] @keyword.operator
[
"def"
"undef"
] @keyword.function
(method
"end" @keyword.function)
[
"case"
"else"
@ -44,10 +46,23 @@
"when"
] @conditional
(if
"end" @conditional)
(if
(then) @conditional)
(unless
(then) @conditional)
(elsif
(then) @conditional)
[
"for"
"until"
"while"
"break"
"redo"
"retry"
"next"
] @repeat
(constant) @type