mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 02:40:09 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
310f0925ec
commit
692b051b09
1247 changed files with 6096 additions and 9074 deletions
33
runtime/queries/r/indents.scm
Normal file
33
runtime/queries/r/indents.scm
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
[
|
||||
(braced_expression)
|
||||
(parenthesized_expression)
|
||||
(call)
|
||||
"if"
|
||||
"else"
|
||||
"while"
|
||||
"repeat"
|
||||
"for"
|
||||
] @indent.begin
|
||||
|
||||
(binary_operator
|
||||
rhs: (_) @_no_indent
|
||||
(#not-kind-eq? @_no_indent function_definition)) @indent.begin
|
||||
|
||||
[
|
||||
"}"
|
||||
")"
|
||||
] @indent.branch
|
||||
|
||||
((parameters
|
||||
.
|
||||
(parameter
|
||||
name: (identifier))) @indent.align
|
||||
(#set! indent.open_delimiter "(")
|
||||
(#set! indent.close_delimiter ")"))
|
||||
|
||||
[
|
||||
")"
|
||||
"}"
|
||||
] @indent.end
|
||||
|
||||
(comment) @indent.ignore
|
||||
Loading…
Add table
Add a link
Reference in a new issue