mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-12 00:10:04 -04:00
fix: prevent double indent from pipes
This commit is contained in:
parent
8e569bc4b5
commit
65310b64ee
3 changed files with 4 additions and 2 deletions
|
|
@ -35,6 +35,8 @@ describe("indent R:", function()
|
|||
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("incomplete_pipe.R", { on_line = 2, text = "head %>%", indent = 2 })
|
||||
|
||||
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