Revert "Tweak sh-script-mode indentation further"

This reverts commit 6392bc37ab.

The changes led to errors throughout (bug#50320).
This commit is contained in:
Lars Ingebrigtsen 2021-09-02 08:41:30 +02:00
parent f3c5355c6b
commit f143260d04
2 changed files with 2 additions and 13 deletions

View file

@ -1775,7 +1775,7 @@ Does not preserve point."
(goto-char p)
nil))))
(while
(progn (skip-syntax-backward ".w_'()")
(progn (skip-syntax-backward ".w_'")
(or (not (zerop (skip-syntax-backward "\\")))
(when (eq ?\\ (char-before (1- (point))))
(let ((p (point)))

View file

@ -35,17 +35,6 @@
(should (equal
(buffer-substring-no-properties (point-min) (point-max))
"relative-path/to/configure --prefix=$prefix\\
--with-x")))
(with-temp-buffer
(insert "${path_to_root}/configure --prefix=$prefix\\
--with-x")
(shell-script-mode)
(goto-char (point-min))
(forward-line 1)
(indent-for-tab-command)
(should (equal
(buffer-substring-no-properties (point-min) (point-max))
"${path_to_root}/configure --prefix=$prefix\\
--with-x"))))
--with-x"))))
;;; sh-script-tests.el ends here