folds support and somewhat better indents for ruby

This commit is contained in:
Ivo Dancet 2021-03-13 18:41:44 +01:00 committed by Thomas Vigouroux
parent 065ff440d4
commit 11ede1c0d2
2 changed files with 26 additions and 0 deletions

12
queries/ruby/folds.scm Normal file
View file

@ -0,0 +1,12 @@
[
(method)
(singleton_method)
(class)
(module)
(if)
(else)
(case)
(do_block)
(singleton_class)
(lambda)
] @fold

View file

@ -1,12 +1,26 @@
[
(class)
(method)
(singleton_method)
(module)
(call)
(if)
(block)
(do_block)
(hash)
(array)
(argument_list)
(case)
] @indent
[
"("
")"
"{"
"}"
"["
"]"
(when)
(elsif)
"end"
] @branch