on master help sign in
Add ruby indents (#1372)

* Add ruby indents * Include ruby in generated docs

commit7001665342ade12823fba4f358a7e8efc2245a2b authorStuart Hinson <stuart.hinson@gmail.com> dateSun 26 Dec 2021, 23:07 (5 years ago) parent8340d73
2 files changed+26−1
book/src/generated/lang-support.md+1−1 runtime/queries/ruby/indents.toml+25
book/src/generated/lang-support.md+1−1
@@ -34,7 +34,7 @@
3434| protobuf | ✓ | | ✓ | |
3535| python | ✓ | ✓ | ✓ | `pylsp` |
3636| racket | | | | `racket` |
37−| ruby | ✓ | | | `solargraph` |
37+| ruby | ✓ | | ✓ | `solargraph` |
3838| rust | ✓ | ✓ | ✓ | `rust-analyzer` |
3939| scala | ✓ | | ✓ | `metals` |
4040| svelte | ✓ | | ✓ | `svelteserver` |
runtime/queries/ruby/indents.tomlnew file+25
@@ -0,0 +1,25 @@
1+indent = [
2+ "argument_list",
3+ "array",
4+ "begin",
5+ "block",
6+ "call",
7+ "class",
8+ "case",
9+ "do_block",
10+ "elsif",
11+ "if",
12+ "hash",
13+ "method",
14+ "module",
15+ "singleton_class",
16+ "singleton_method",
17+]
18+
19+outdent = [
20+ ")",
21+ "}",
22+ "]",
23+ "end",
24+ "when",
25+]