zed/extensions/ruby/languages/rbs/config.toml
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

10 lines
304 B
TOML

name = "rbs"
grammar = "rbs"
path_suffixes = ["rbs"]
autoclose_before = "]})"
brackets = [
{ start = "(", end = ")", close = true, newline = false },
{ start = "{", end = "}", close = true, newline = false },
{ start = "[", end = "]", close = true, newline = false },
]
line_comments = ["#"]