mirror of
https://github.com/nvim-treesitter/nvim-treesitter
synced 2024-09-16 14:34:05 +02:00
fix(lua): proper indent after multiline string arg
This commit is contained in:
parent
d7353a6b72
commit
558c7ad7bf
3 changed files with 6 additions and 0 deletions
|
@ -17,6 +17,7 @@
|
|||
[
|
||||
"end"
|
||||
"}"
|
||||
"]]"
|
||||
] @indent.end
|
||||
|
||||
(")" @indent.end
|
||||
|
|
|
@ -3,3 +3,7 @@ a
|
|||
multiline
|
||||
string
|
||||
]]
|
||||
|
||||
print [[
|
||||
test
|
||||
]]
|
||||
|
|
|
@ -28,6 +28,7 @@ describe("indent Lua:", function()
|
|||
run:new_line("string.lua", { on_line = 2, text = "x", indent = 0 })
|
||||
run:new_line("string.lua", { on_line = 3, text = "x", indent = 2 })
|
||||
run:new_line("string.lua", { on_line = 4, text = "x", indent = 4 })
|
||||
run:new_line("string.lua", { on_line = 9, text = "x", indent = 0 })
|
||||
run:new_line("table.lua", { on_line = 1, text = "b = 0,", indent = 2 })
|
||||
run:new_line("table.lua", { on_line = 5, text = "4,", indent = 4 })
|
||||
run:new_line("table.lua", { on_line = 7, text = "4,", indent = 4 })
|
||||
|
|
Loading…
Reference in a new issue