diff options
Diffstat (limited to 'runtime/queries/ruby/indents.scm')
| -rw-r--r-- | runtime/queries/ruby/indents.scm | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/runtime/queries/ruby/indents.scm b/runtime/queries/ruby/indents.scm new file mode 100644 index 000000000..b76732922 --- /dev/null +++ b/runtime/queries/ruby/indents.scm @@ -0,0 +1,43 @@ +[ + (class) + (singleton_class) + (method) + (singleton_method) + (module) + (call) + (if) + (block) + (do_block) + (hash) + (array) + (argument_list) + (case) + (while) + (until) + (for) + (begin) + (unless) + (assignment) + (parenthesized_statements) +] @indent.begin + +[ + "end" + ")" + "}" + "]" +] @indent.end + +[ + "end" + ")" + "}" + "]" + (when) + (elsif) + (else) + (rescue) + (ensure) +] @indent.branch + +(comment) @indent.ignore |
