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:
parent
57ec4af047
commit
9a1136f4de
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user