1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-13 01:20:28 -08:00
emacs/test/lisp/progmodes/sh-script-resources/sh-indents.erts
Michael Albinus aa356d03ae Make sh-script-tests.el more robust
* 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)
2024-04-05 19:43:56 +02:00

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
=-=-=