mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-10 23:40:04 -04:00
indents(lua): use (comment) @auto
This commit is contained in:
parent
693dae241d
commit
a14970861c
3 changed files with 1 additions and 10 deletions
|
|
@ -37,6 +37,5 @@
|
||||||
] @branch
|
] @branch
|
||||||
|
|
||||||
(comment) @auto
|
(comment) @auto
|
||||||
(comment) @ignore
|
|
||||||
|
|
||||||
(string) @auto
|
(string) @auto
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,3 @@
|
||||||
another
|
another
|
||||||
comment
|
comment
|
||||||
--]]
|
--]]
|
||||||
|
|
||||||
--[[
|
|
||||||
another
|
|
||||||
comment
|
|
||||||
a bit more indented
|
|
||||||
--]]
|
|
||||||
|
|
|
||||||
|
|
@ -11,9 +11,7 @@ local run = Runner:new(it, "tests/indent/lua", {
|
||||||
describe("indent Lua:", function()
|
describe("indent Lua:", function()
|
||||||
describe("whole file:", function()
|
describe("whole file:", function()
|
||||||
run:whole_file(".", {
|
run:whole_file(".", {
|
||||||
expected_failures = {
|
expected_failures = {},
|
||||||
"./comment.lua",
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue