1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-13 17:40:22 -08:00
emacs/test/lisp/progmodes/sh-script-resources/sh-indents.erts
Lars Ingebrigtsen 985e7148a7 Improve indentation of some shell script forms
* lisp/progmodes/sh-script.el (sh-smie--default-backward-token):
Don't skip past things like "true;then" (bug#53817).
2022-02-07 09:13:54 +01:00

40 lines
356 B
Text

Code:
(lambda ()
(shell-script-mode)
(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
=-=-=