mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 01:40:02 -04:00
feat: add rbs parser support (#5745)
This commit is contained in:
parent
36f81e698e
commit
b41bbcbb9a
7 changed files with 160 additions and 0 deletions
24
queries/rbs/indents.scm
Normal file
24
queries/rbs/indents.scm
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
[
|
||||
(class_decl)
|
||||
(module_decl)
|
||||
(interface_decl)
|
||||
(parameters)
|
||||
(tuple_type)
|
||||
(record_type)
|
||||
] @indent.begin
|
||||
|
||||
[
|
||||
"end"
|
||||
")"
|
||||
"]"
|
||||
"}"
|
||||
] @indent.end
|
||||
|
||||
[
|
||||
"end"
|
||||
")"
|
||||
"}"
|
||||
"]"
|
||||
] @indent.branch
|
||||
|
||||
(comment) @indent.auto
|
||||
Loading…
Add table
Add a link
Reference in a new issue