; 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:
parent
22602f9c2c
commit
60e9195984
1 changed files with 9 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue