aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent/nickel_spec.lua
diff options
context:
space:
mode:
authorZheng PiaoDan <zhengpiaodan@gmail.com>2023-05-13 06:03:05 +0000
committerGitHub <noreply@github.com>2023-05-13 15:03:05 +0900
commitdba8c8e781cf9cc88a47ad65edf182784fdffaf1 (patch)
treecdba6b27c15498cf2ae90ce1b577dc4beec6b96e /tests/indent/nickel_spec.lua
parentfeat(cpon): update queries (diff)
downloadnvim-treesitter-dba8c8e781cf9cc88a47ad65edf182784fdffaf1.tar
nvim-treesitter-dba8c8e781cf9cc88a47ad65edf182784fdffaf1.tar.gz
nvim-treesitter-dba8c8e781cf9cc88a47ad65edf182784fdffaf1.tar.bz2
nvim-treesitter-dba8c8e781cf9cc88a47ad65edf182784fdffaf1.tar.lz
nvim-treesitter-dba8c8e781cf9cc88a47ad65edf182784fdffaf1.tar.xz
nvim-treesitter-dba8c8e781cf9cc88a47ad65edf182784fdffaf1.tar.zst
nvim-treesitter-dba8c8e781cf9cc88a47ad65edf182784fdffaf1.zip
fix(nickel): wrong indent on line after top level comment (#4792)
* fix(nickel): wrong indent on line after top level comment Previous incorrect indentation on line after top level comment: ``` # no indent after this comment { another = 1 } ``` Expected result: ``` # no indent after this comment { another = 1 } ````
Diffstat (limited to 'tests/indent/nickel_spec.lua')
-rw-r--r--tests/indent/nickel_spec.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/indent/nickel_spec.lua b/tests/indent/nickel_spec.lua
index 01d3c3d17..d178dab52 100644
--- a/tests/indent/nickel_spec.lua
+++ b/tests/indent/nickel_spec.lua
@@ -20,5 +20,6 @@ describe("indent Nickel:", function()
run:new_line("indent-newline.ncl", { on_line = 5, text = "stmt", indent = 2 })
run:new_line("indent-newline.ncl", { on_line = 6, text = "stmt", indent = 4 })
run:new_line("indent-newline.ncl", { on_line = 7, text = "}", indent = 2 })
+ run:new_line("indent-newline.ncl", { on_line = 11, text = "stmt", indent = 0 })
end)
end)