summaryrefslogtreecommitdiff
path: root/runtime/queries/ruby/indents.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/ruby/indents.scm')
-rw-r--r--runtime/queries/ruby/indents.scm25
1 files changed, 25 insertions, 0 deletions
diff --git a/runtime/queries/ruby/indents.scm b/runtime/queries/ruby/indents.scm
new file mode 100644
index 00000000..f5a6d19b
--- /dev/null
+++ b/runtime/queries/ruby/indents.scm
@@ -0,0 +1,25 @@
+[
+ (argument_list)
+ (array)
+ (begin)
+ (block)
+ (call)
+ (class)
+ (case)
+ (do_block)
+ (elsif)
+ (if)
+ (hash)
+ (method)
+ (module)
+ (singleton_class)
+ (singleton_method)
+] @indent
+
+[
+ ")"
+ "}"
+ "]"
+ "end"
+ "when"
+] @outdent