1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 06:30:03 +08:00
SpaceVim/bundle/nvim-treesitter/queries/r/indents.scm

34 lines
390 B
Scheme

[
(brace_list)
(paren_list)
(special)
(pipe)
(call)
"|>"
"if"
"else"
"while"
"repeat"
"for"
] @indent.begin
((binary operator: (special)) @indent.begin)
[
"}"
")"
] @indent.branch
((formal_parameters (identifier)) @indent.align
(#set! indent.open_delimiter "(")
(#set! indent.close_delimiter ")"))
[
")"
"}"
] @indent.end
[
(comment)
] @indent.ignore