aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorStuart Hinson2021-12-27 04:07:09 +0000
committerGitHub2021-12-27 04:07:09 +0000
commit7001665342ade12823fba4f358a7e8efc2245a2b (patch)
tree59dcd8bad6230d84d87f3ae90e306a8652c18414 /runtime
parent8340d73545a0757ff3ddd83d019b3d41a923f017 (diff)
Add ruby indents (#1372)
* Add ruby indents * Include ruby in generated docs
Diffstat (limited to 'runtime')
-rw-r--r--runtime/queries/ruby/indents.toml25
1 files changed, 25 insertions, 0 deletions
diff --git a/runtime/queries/ruby/indents.toml b/runtime/queries/ruby/indents.toml
new file mode 100644
index 00000000..b417751f
--- /dev/null
+++ b/runtime/queries/ruby/indents.toml
@@ -0,0 +1,25 @@
+indent = [
+ "argument_list",
+ "array",
+ "begin",
+ "block",
+ "call",
+ "class",
+ "case",
+ "do_block",
+ "elsif",
+ "if",
+ "hash",
+ "method",
+ "module",
+ "singleton_class",
+ "singleton_method",
+]
+
+outdent = [
+ ")",
+ "}",
+ "]",
+ "end",
+ "when",
+]