mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-04 12:30:01 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
c13e28f894
commit
2c8f2f2fad
829 changed files with 4905 additions and 8010 deletions
|
|
@ -1,22 +1,22 @@
|
|||
local Runner = require("tests.indent.common").Runner
|
||||
local Runner = require('tests.indent.common').Runner
|
||||
|
||||
local run = Runner:new(it, "tests/indent/ruby", {
|
||||
local run = Runner:new(it, 'tests/indent/ruby', {
|
||||
shiftwidth = 2,
|
||||
expandtab = true,
|
||||
})
|
||||
|
||||
describe("indent Ruby:", function()
|
||||
describe("whole file:", function()
|
||||
run:whole_file(".", {
|
||||
expected_failures = { "./period-issue-3364.rb" },
|
||||
describe('indent Ruby:', function()
|
||||
describe('whole file:', function()
|
||||
run:whole_file('.', {
|
||||
expected_failures = { './period-issue-3364.rb' },
|
||||
})
|
||||
end)
|
||||
|
||||
describe("new line:", function()
|
||||
run:new_line("indent-unless.rb", { on_line = 1, text = "stmt", indent = 2 })
|
||||
run:new_line("indent-assignment.rb", { on_line = 1, text = "1 +", indent = 2 })
|
||||
run:new_line("indent-parenthesized-statements.rb", { on_line = 1, text = "stmt", indent = 2 })
|
||||
run:new_line("indent-rescue.rb", { on_line = 1, text = "rescue", indent = 0 })
|
||||
run:new_line("indent-ensure.rb", { on_line = 1, text = "ensure", indent = 0 })
|
||||
describe('new line:', function()
|
||||
run:new_line('indent-unless.rb', { on_line = 1, text = 'stmt', indent = 2 })
|
||||
run:new_line('indent-assignment.rb', { on_line = 1, text = '1 +', indent = 2 })
|
||||
run:new_line('indent-parenthesized-statements.rb', { on_line = 1, text = 'stmt', indent = 2 })
|
||||
run:new_line('indent-rescue.rb', { on_line = 1, text = 'rescue', indent = 0 })
|
||||
run:new_line('indent-ensure.rb', { on_line = 1, text = 'ensure', indent = 0 })
|
||||
end)
|
||||
end)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue