mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
update tests
This commit is contained in:
parent
c433b3c232
commit
d335c39bff
3 changed files with 14 additions and 9 deletions
|
|
@ -1,19 +1,19 @@
|
|||
[
|
||||
(moduleMember)
|
||||
(module)
|
||||
(dataclass)
|
||||
(charpred)
|
||||
(memberPredicate)
|
||||
(classMember)
|
||||
(classlessPredicate)
|
||||
(quantified)
|
||||
] @indent
|
||||
|
||||
[
|
||||
(variable)
|
||||
"("
|
||||
")"
|
||||
"{"
|
||||
"}"
|
||||
"["
|
||||
"]"
|
||||
] @indent_end
|
||||
|
||||
[
|
||||
")"
|
||||
"}"
|
||||
] @branch
|
||||
|
||||
[
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
import go
|
||||
|
||||
module Test {
|
||||
predicate test() {}
|
||||
}
|
||||
|
||||
select 1
|
||||
|
|
|
|||
|
|
@ -16,5 +16,9 @@ describe("indent Lua:", function()
|
|||
end)
|
||||
|
||||
describe("new line:", function()
|
||||
run:new_line("module.ql", { on_line = 3, text = "predicate test() {}", indent = 2 })
|
||||
run:new_line("module.ql", { on_line = 3, text = "predicate foo() {}", indent = 2 })
|
||||
end)
|
||||
|
||||
describe("new line:", function()
|
||||
run:new_line("module.ql", { on_line = 4, text = "predicate foo() {}", indent = 2 })
|
||||
end)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue