mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-12 00:10:04 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
310f0925ec
commit
692b051b09
1247 changed files with 6096 additions and 9074 deletions
|
|
@ -1,43 +1,43 @@
|
|||
local Runner = require("tests.indent.common").Runner
|
||||
local Runner = require('tests.indent.common').Runner
|
||||
--local XFAIL = require("tests.indent.common").XFAIL
|
||||
|
||||
local run = Runner:new(it, "tests/indent/wgsl", {
|
||||
local run = Runner:new(it, 'tests/indent/wgsl', {
|
||||
tabstop = 2,
|
||||
shiftwidth = 2,
|
||||
softtabstop = 0,
|
||||
expandtab = true,
|
||||
})
|
||||
|
||||
describe("indent WGSL:", function()
|
||||
describe("whole file:", function()
|
||||
run:whole_file(".", {
|
||||
describe('indent WGSL:', function()
|
||||
describe('whole file:', function()
|
||||
run:whole_file('.', {
|
||||
expected_failures = {},
|
||||
})
|
||||
end)
|
||||
|
||||
describe("new line:", function()
|
||||
run:new_line("basic.wgsl", { on_line = 47, text = "c: u32,", indent = 2 })
|
||||
run:new_line("basic.wgsl", { on_line = 52, text = "c: u32,", indent = 2 })
|
||||
run:new_line("basic.wgsl", { on_line = 56, text = "c: u32,", indent = 2 })
|
||||
run:new_line("basic.wgsl", { on_line = 59, text = "c: u32,", indent = 2 })
|
||||
run:new_line("type_constructor_or_function_call_expression.wgsl", {
|
||||
describe('new line:', function()
|
||||
run:new_line('basic.wgsl', { on_line = 47, text = 'c: u32,', indent = 2 })
|
||||
run:new_line('basic.wgsl', { on_line = 52, text = 'c: u32,', indent = 2 })
|
||||
run:new_line('basic.wgsl', { on_line = 56, text = 'c: u32,', indent = 2 })
|
||||
run:new_line('basic.wgsl', { on_line = 59, text = 'c: u32,', indent = 2 })
|
||||
run:new_line('type_constructor_or_function_call_expression.wgsl', {
|
||||
on_line = 3,
|
||||
text = "b",
|
||||
text = 'b',
|
||||
indent = 4,
|
||||
})
|
||||
run:new_line("type_constructor_or_function_call_expression.wgsl", {
|
||||
run:new_line('type_constructor_or_function_call_expression.wgsl', {
|
||||
on_line = 4,
|
||||
text = "c",
|
||||
text = 'c',
|
||||
indent = 4,
|
||||
})
|
||||
run:new_line("type_constructor_or_function_call_expression.wgsl", {
|
||||
run:new_line('type_constructor_or_function_call_expression.wgsl', {
|
||||
on_line = 8,
|
||||
text = "b",
|
||||
text = 'b',
|
||||
indent = 4,
|
||||
})
|
||||
run:new_line("type_constructor_or_function_call_expression.wgsl", {
|
||||
run:new_line('type_constructor_or_function_call_expression.wgsl', {
|
||||
on_line = 9,
|
||||
text = "c",
|
||||
text = 'c',
|
||||
indent = 4,
|
||||
})
|
||||
end)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue