mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 11:50:09 -04:00
refactor(ruby): move keywords appropriately
This commit is contained in:
parent
33ba346e60
commit
3c8842c79a
1 changed files with 21 additions and 6 deletions
|
|
@ -8,19 +8,13 @@
|
||||||
[
|
[
|
||||||
"alias"
|
"alias"
|
||||||
"begin"
|
"begin"
|
||||||
"break"
|
|
||||||
"class"
|
"class"
|
||||||
"def"
|
|
||||||
"do"
|
"do"
|
||||||
"end"
|
"end"
|
||||||
"ensure"
|
"ensure"
|
||||||
"module"
|
"module"
|
||||||
"next"
|
|
||||||
"redo"
|
|
||||||
"rescue"
|
"rescue"
|
||||||
"retry"
|
|
||||||
"then"
|
"then"
|
||||||
"undef"
|
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
[
|
[
|
||||||
|
|
@ -35,6 +29,14 @@
|
||||||
"not"
|
"not"
|
||||||
] @keyword.operator
|
] @keyword.operator
|
||||||
|
|
||||||
|
[
|
||||||
|
"def"
|
||||||
|
"undef"
|
||||||
|
] @keyword.function
|
||||||
|
|
||||||
|
(method
|
||||||
|
"end" @keyword.function)
|
||||||
|
|
||||||
[
|
[
|
||||||
"case"
|
"case"
|
||||||
"else"
|
"else"
|
||||||
|
|
@ -44,10 +46,23 @@
|
||||||
"when"
|
"when"
|
||||||
] @conditional
|
] @conditional
|
||||||
|
|
||||||
|
(if
|
||||||
|
"end" @conditional)
|
||||||
|
(if
|
||||||
|
(then) @conditional)
|
||||||
|
(unless
|
||||||
|
(then) @conditional)
|
||||||
|
(elsif
|
||||||
|
(then) @conditional)
|
||||||
|
|
||||||
[
|
[
|
||||||
"for"
|
"for"
|
||||||
"until"
|
"until"
|
||||||
"while"
|
"while"
|
||||||
|
"break"
|
||||||
|
"redo"
|
||||||
|
"retry"
|
||||||
|
"next"
|
||||||
] @repeat
|
] @repeat
|
||||||
|
|
||||||
(constant) @type
|
(constant) @type
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue