1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-30 19:53:09 +00:00

(sh-mode): When setting syntax

table, default to the standard one.
This commit is contained in:
Karl Heuer 1999-06-29 17:06:17 +00:00
parent 57ec4af047
commit 9a1136f4de

View File

@ -783,7 +783,8 @@ with your script for an edit-interpret-debug cycle."
(progn
;; If we don't know the shell for this file, set the syntax
;; table anyway, for the user's normal choice of shell.
(set-syntax-table (sh-feature sh-mode-syntax-table))
(set-syntax-table (or (sh-feature sh-mode-syntax-table)
(standard-syntax-table)))
;; And avoid indent-new-comment-line (at least) losing.
(setq comment-start-skip "#+[\t ]*"))))
(run-hooks 'sh-mode-hook))