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,25 +1,28 @@
|
|||
local Runner = require("tests.indent.common").Runner
|
||||
local Runner = require('tests.indent.common').Runner
|
||||
|
||||
local run = Runner:new(it, "tests/indent/smali", {
|
||||
local run = Runner:new(it, 'tests/indent/smali', {
|
||||
tabstop = 4,
|
||||
shiftwidth = 4,
|
||||
expandtab = false,
|
||||
})
|
||||
|
||||
describe("indent Smali:", function()
|
||||
describe("whole file:", function()
|
||||
run:whole_file(".", {
|
||||
describe('indent Smali:', function()
|
||||
describe('whole file:', function()
|
||||
run:whole_file('.', {
|
||||
expected_failures = {},
|
||||
})
|
||||
end)
|
||||
|
||||
describe("new line:", function()
|
||||
run:new_line("field.smali", { on_line = 7, text = 'value1 = "test"', indent = 1 })
|
||||
run:new_line("field.smali", { on_line = 10, text = "value2 = Lsome/enum;", indent = 2 })
|
||||
run:new_line("array_and_switch.smali", { on_line = 43, text = "1 2 3 4 5 6 200", indent = 2 })
|
||||
run:new_line("array_and_switch.smali", { on_line = 48, text = "Label10:", indent = 2 })
|
||||
run:new_line("method.smali", { on_line = 7, text = ".registers 10", indent = 1 })
|
||||
run:new_line("parameter.smali", { on_line = 20, text = ".annotation runtime Lsome/annotation;", indent = 3 })
|
||||
run:new_line("parameter.smali", { on_line = 21, text = 'something = "some value"', indent = 3 })
|
||||
describe('new line:', function()
|
||||
run:new_line('field.smali', { on_line = 7, text = 'value1 = "test"', indent = 1 })
|
||||
run:new_line('field.smali', { on_line = 10, text = 'value2 = Lsome/enum;', indent = 2 })
|
||||
run:new_line('array_and_switch.smali', { on_line = 43, text = '1 2 3 4 5 6 200', indent = 2 })
|
||||
run:new_line('array_and_switch.smali', { on_line = 48, text = 'Label10:', indent = 2 })
|
||||
run:new_line('method.smali', { on_line = 7, text = '.registers 10', indent = 1 })
|
||||
run:new_line(
|
||||
'parameter.smali',
|
||||
{ on_line = 20, text = '.annotation runtime Lsome/annotation;', indent = 3 }
|
||||
)
|
||||
run:new_line('parameter.smali', { on_line = 21, text = 'something = "some value"', indent = 3 })
|
||||
end)
|
||||
end)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue