nvim-treesitter/queries/r/indents.scm

34 lines
388 B
Scheme
Raw Normal View History

2022-01-27 12:14:18 -03:00
[
(brace_list)
(paren_list)
(special)
2022-02-04 23:36:07 +01:00
(pipe)
2022-03-28 16:08:30 -03:00
(call)
2022-01-27 12:14:18 -03:00
"|>"
"if"
"else"
"while"
"repeat"
"for"
] @indent.begin
2022-01-27 12:14:18 -03:00
2024-01-21 22:05:44 +09:00
(binary
operator: (special)) @indent.begin
2022-01-27 12:14:18 -03:00
[
"}"
")"
] @indent.branch
2022-01-27 12:14:18 -03:00
2024-01-06 15:05:50 +09:00
((formal_parameters
(identifier)) @indent.align
(#set! indent.open_delimiter "(")
(#set! indent.close_delimiter ")"))
2022-01-28 22:32:59 -03:00
2022-01-27 12:14:18 -03:00
[
")"
"}"
] @indent.end
2022-01-27 12:14:18 -03:00
2024-01-06 15:05:50 +09:00
(comment) @indent.ignore