mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-13 01:20:28 -08:00
* test/lisp/progmodes/sh-script-tests.el (test-sh-script-indentation) (test-basic-sh-indentation, test-indent-after-continuation): * test/lisp/progmodes/sh-script-resources/sh-indents.erts (Code): Skip if `sh-indent-supported-here' is nil. (Bug#70196)
51 lines
579 B
Text
51 lines
579 B
Text
Code:
|
|
(lambda ()
|
|
(shell-script-mode)
|
|
(unless sh-indent-supported-here
|
|
(ert-skip
|
|
'((skip-unless sh-indent-supported-here)
|
|
:form sh-indent-supported-here :value nil)))
|
|
(indent-region (point-min) (point-max)))
|
|
|
|
Name: sh-indents1
|
|
|
|
=-=
|
|
if test;then
|
|
something
|
|
fi
|
|
other
|
|
=-=-=
|
|
|
|
Name: sh-indents2
|
|
|
|
=-=
|
|
if test; then
|
|
something
|
|
fi
|
|
other
|
|
=-=-=
|
|
|
|
Name: sh-indents3
|
|
|
|
=-=
|
|
if test ; then
|
|
something
|
|
fi
|
|
other
|
|
=-=-=
|
|
|
|
Name: sh-indents4
|
|
|
|
=-=
|
|
if test ;then
|
|
something
|
|
fi
|
|
other
|
|
=-=-=
|
|
|
|
Name: sh-indents5
|
|
|
|
=-=
|
|
for i do echo 1; done
|
|
for i; do echo 1; done
|
|
=-=-=
|