; Fix 'lua-ts-mode' tests (Bug#77102)

* test/lisp/progmodes/lua-ts-mode-resources/indent.erts:
Remove unintended use of tabs and make indentation settings
buffer local.
This commit is contained in:
john muhl 2025-03-18 09:12:39 -05:00 committed by Eli Zaretskii
parent 22602f9c2c
commit 60e9195984

View file

@ -1,8 +1,8 @@
Code:
(lambda ()
(setq lua-ts-indent-offset 2)
(setq indent-tabs-mode nil)
(lua-ts-mode)
(setq-local indent-tabs-mode nil)
(setq-local lua-ts-indent-offset 2)
(indent-region (point-min) (point-max)))
Name: Chunk Indent
@ -479,8 +479,8 @@ local tb9 = { one = 1,
two = 2 }
=-=
local tb9 = { one = 1,
-- comment
two = 2 }
-- comment
two = 2 }
=-=-=
Name: Argument Indent 1
@ -805,9 +805,9 @@ end
Code:
(lambda ()
(setq lua-ts-indent-offset 4)
(lua-ts-mode)
(setq indent-tabs-mode nil)
(setq-local lua-ts-indent-offset 4)
(setq-local indent-tabs-mode nil)
(indent-region (point-min) (point-max)))
Name: End Indent 1
@ -1072,10 +1072,10 @@ end end end
Code:
(lambda ()
(setq lua-ts-indent-continuation-lines nil)
(setq lua-ts-indent-offset 2)
(lua-ts-mode)
(setq indent-tabs-mode nil)
(setq-local lua-ts-indent-continuation-lines nil)
(setq-local lua-ts-indent-offset 2)
(setq-local indent-tabs-mode nil)
(indent-region (point-min) (point-max)))
Name: Unaligned Continuation Indent