Make sh-mode always use p-s-lookup-properties
This lets functions which rely on syntax-propertize for parsing work correctly even before font lock has a chance to run. * lisp/progmodes/sh-script.el (sh-set-shell): Set parse-sexp-lookup-properties unconditionally (Bug #4920).
This commit is contained in:
parent
0095837d90
commit
37cef5fbfe
1 changed files with 1 additions and 1 deletions
|
@ -2430,8 +2430,8 @@ whose value is the shell name (don't quote it)."
|
|||
(funcall mksym "rules")
|
||||
:forward-token (funcall mksym "forward-token")
|
||||
:backward-token (funcall mksym "backward-token")))
|
||||
(setq-local parse-sexp-lookup-properties t)
|
||||
(unless sh-use-smie
|
||||
(setq-local parse-sexp-lookup-properties t)
|
||||
(setq-local sh-kw-alist (sh-feature sh-kw))
|
||||
(let ((regexp (sh-feature sh-kws-for-done)))
|
||||
(if regexp
|
||||
|
|
Loading…
Add table
Reference in a new issue