aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Hinson2021-12-27 04:07:09 +0000
committerGitHub2021-12-27 04:07:09 +0000
commit7001665342ade12823fba4f358a7e8efc2245a2b (patch)
tree59dcd8bad6230d84d87f3ae90e306a8652c18414
parent8340d73545a0757ff3ddd83d019b3d41a923f017 (diff)
Add ruby indents (#1372)
* Add ruby indents * Include ruby in generated docs
-rw-r--r--book/src/generated/lang-support.md2
-rw-r--r--runtime/queries/ruby/indents.toml25
2 files changed, 26 insertions, 1 deletions
diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md
index 9c42005b..28094484 100644
--- a/book/src/generated/lang-support.md
+++ b/book/src/generated/lang-support.md
@@ -34,7 +34,7 @@
| protobuf | ✓ | | ✓ | |
| python | ✓ | ✓ | ✓ | `pylsp` |
| racket | | | | `racket` |
-| ruby | ✓ | | | `solargraph` |
+| ruby | ✓ | | ✓ | `solargraph` |
| rust | ✓ | ✓ | ✓ | `rust-analyzer` |
| scala | ✓ | | ✓ | `metals` |
| svelte | ✓ | | ✓ | `svelteserver` |
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",
+]