zed/extensions/ruby/languages/rbs/indents.scm
Vitaly Slobodin 45afe9dffa
ruby: Add support for *.rbs files (#15778)
Hi, this pull request adds support for RBS files for the Ruby language.
[RBS](https://github.com/ruby/rbs) is a language to describe the
structure of Ruby programs.

This pull request:

- adds a new grammar to the Ruby extension for RBS
https://github.com/joker1007/tree-sitter-rbs
- configures the Ruby extension to use the added grammar.

Release Notes:

- N/A
2024-08-06 09:51:44 +02:00

14 lines
216 B
Scheme

[
(class_decl)
(module_decl)
(interface_decl)
(parameters)
(tuple_type)
(record_type)
] @indent.begin
(_ "[" "]" @end) @indent
(_ "{" "}" @end) @indent
(_ "(" ")" @end) @indent
(comment) @indent.ignore