mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-03 03:56:52 -04:00
fix(indents): indents for error block (css, lua) (#3207)
This commit is contained in:
parent
223a58bfca
commit
d7f06bfb13
6 changed files with 24 additions and 12 deletions
|
|
@ -36,8 +36,12 @@ describe("indent Lua:", function()
|
|||
run:new_line("cond.lua", { on_line = 8, text = "x = x + 1", indent = 4 })
|
||||
run:new_line("cond.lua", { on_line = 10, text = "x = x + 1", indent = 2 })
|
||||
run:new_line("cond.lua", { on_line = 12, text = "x = x + 1", indent = 0 })
|
||||
run:new_line("cond.lua", { on_line = 14, text = "x = x + 1", indent = 2 })
|
||||
run:new_line("cond.lua", { on_line = 14, text = "end", indent = 0 })
|
||||
run:new_line("no-indent-after-paren-pairs.lua", { on_line = 3, text = "x = x + 1", indent = 0 })
|
||||
run:new_line("no-indent-after-paren-pairs.lua", { on_line = 6, text = "x = x + 1", indent = 0 })
|
||||
run:new_line("nested-table.lua", { on_line = 5, text = "{}", indent = 4 })
|
||||
run:new_line("method_index_expr.lua", { on_line = 1, text = ":test()", indent = 2 })
|
||||
run:new_line("method_index_expr.lua", { on_line = 3, text = "local a = 1", indent = 0 })
|
||||
end)
|
||||
end)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue