diff options
| author | Pedro Castro <aspeddro@gmail.com> | 2022-11-29 11:52:28 -0300 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-11-29 19:23:09 +0100 |
| commit | 161576dde2a2172c6036e25600185e9497e71a24 (patch) | |
| tree | c111875fe6b87c8f387561592a523c97cb004656 /tests | |
| parent | Update lockfile.json (diff) | |
| download | nvim-treesitter-161576dde2a2172c6036e25600185e9497e71a24.tar nvim-treesitter-161576dde2a2172c6036e25600185e9497e71a24.tar.gz nvim-treesitter-161576dde2a2172c6036e25600185e9497e71a24.tar.bz2 nvim-treesitter-161576dde2a2172c6036e25600185e9497e71a24.tar.lz nvim-treesitter-161576dde2a2172c6036e25600185e9497e71a24.tar.xz nvim-treesitter-161576dde2a2172c6036e25600185e9497e71a24.tar.zst nvim-treesitter-161576dde2a2172c6036e25600185e9497e71a24.zip | |
indents(r): support special operator
Close #3879
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/indent/r/pipe.R | 3 | ||||
| -rw-r--r-- | tests/indent/r_spec.lua | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/indent/r/pipe.R b/tests/indent/r/pipe.R index 2eef84218..6e19f8215 100644 --- a/tests/indent/r/pipe.R +++ b/tests/indent/r/pipe.R @@ -5,3 +5,6 @@ mtcars |> subset( cyl > 3 ) + +mtcars %>% + head() diff --git a/tests/indent/r_spec.lua b/tests/indent/r_spec.lua index ac1ed31e3..662ea5809 100644 --- a/tests/indent/r_spec.lua +++ b/tests/indent/r_spec.lua @@ -35,6 +35,7 @@ describe("indent R:", function() 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 = 9, text = "head()", indent = 2 }) run:new_line("aligned_indent.R", { on_line = 1, text = "z,", indent = 17 }) end) |
