mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 11:20:07 -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)
|
(dataclass)
|
||||||
(charpred)
|
(classMember)
|
||||||
(memberPredicate)
|
(classlessPredicate)
|
||||||
(quantified)
|
(quantified)
|
||||||
] @indent
|
] @indent
|
||||||
|
|
||||||
[
|
[
|
||||||
(variable)
|
|
||||||
"("
|
|
||||||
")"
|
")"
|
||||||
"{"
|
|
||||||
"}"
|
"}"
|
||||||
"["
|
] @indent_end
|
||||||
"]"
|
|
||||||
|
[
|
||||||
|
")"
|
||||||
|
"}"
|
||||||
] @branch
|
] @branch
|
||||||
|
|
||||||
[
|
[
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
import go
|
import go
|
||||||
|
|
||||||
module Test {
|
module Test {
|
||||||
|
predicate test() {}
|
||||||
}
|
}
|
||||||
|
|
||||||
select 1
|
select 1
|
||||||
|
|
|
||||||
|
|
@ -16,5 +16,9 @@ describe("indent Lua:", function()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
describe("new line:", function()
|
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)
|
end)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue