aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent/wgsl_spec.lua
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2023-06-12 09:54:30 -0600
committerChristian Clason <c.clason@uni-graz.at>2025-05-12 18:43:40 +0200
commit692b051b09935653befdb8f7ba8afdb640adf17b (patch)
tree167162b6b129ae04f68c5735078521a72917c742 /tests/indent/wgsl_spec.lua
parentfeat(c-family): inherit injections (diff)
downloadnvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar
nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.gz
nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.bz2
nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.lz
nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.xz
nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.zst
nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.zip
feat!: drop modules, general refactor and cleanup
Diffstat (limited to 'tests/indent/wgsl_spec.lua')
-rw-r--r--tests/indent/wgsl_spec.lua36
1 files changed, 18 insertions, 18 deletions
diff --git a/tests/indent/wgsl_spec.lua b/tests/indent/wgsl_spec.lua
index e1bf618f8..9a30cff4b 100644
--- a/tests/indent/wgsl_spec.lua
+++ b/tests/indent/wgsl_spec.lua
@@ -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)