mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-04 12:30:01 -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
|
|
@ -1,5 +1,4 @@
|
|||
local Runner = require("tests.indent.common").Runner
|
||||
local XFAIL = require("tests.indent.common").XFAIL
|
||||
|
||||
local run = Runner:new(it, "tests/indent/css", {
|
||||
tabstop = 2,
|
||||
|
|
@ -17,12 +16,7 @@ describe("indent CSS:", function()
|
|||
|
||||
describe("new line:", function()
|
||||
run:new_line("open_block.css", { on_line = 1, text = "}", indent = 0 })
|
||||
run:new_line(
|
||||
"open_block.css",
|
||||
{ on_line = 1, text = "color: green;", indent = 2 },
|
||||
"might fail because tree is in a broken state",
|
||||
XFAIL
|
||||
)
|
||||
run:new_line("open_block.css", { on_line = 1, text = "color: green;", indent = 2 })
|
||||
run:new_line("next_rule.css", { on_line = 3, text = ".next {", indent = 0 })
|
||||
end)
|
||||
end)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue