mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 03:40:04 -04:00
parent
d05be3742e
commit
161576dde2
3 changed files with 6 additions and 0 deletions
|
|
@ -12,6 +12,8 @@
|
||||||
"for"
|
"for"
|
||||||
] @indent
|
] @indent
|
||||||
|
|
||||||
|
((binary operator: (special)) @indent)
|
||||||
|
|
||||||
[
|
[
|
||||||
"}"
|
"}"
|
||||||
")"
|
")"
|
||||||
|
|
|
||||||
|
|
@ -5,3 +5,6 @@ mtcars |>
|
||||||
subset(
|
subset(
|
||||||
cyl > 3
|
cyl > 3
|
||||||
)
|
)
|
||||||
|
|
||||||
|
mtcars %>%
|
||||||
|
head()
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,7 @@ describe("indent R:", function()
|
||||||
run:new_line("loop.R", { on_line = 14, text = "print('lol')", indent = 4 })
|
run:new_line("loop.R", { on_line = 14, text = "print('lol')", indent = 4 })
|
||||||
|
|
||||||
run:new_line("pipe.R", { on_line = 1, text = "head(n = 10L) |>", indent = 2 })
|
run:new_line("pipe.R", { on_line = 1, text = "head(n = 10L) |>", indent = 2 })
|
||||||
|
run:new_line("pipe.R", { on_line = 9, text = "head()", indent = 2 })
|
||||||
|
|
||||||
run:new_line("aligned_indent.R", { on_line = 1, text = "z,", indent = 17 })
|
run:new_line("aligned_indent.R", { on_line = 1, text = "z,", indent = 17 })
|
||||||
end)
|
end)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue