1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-01 11:14:55 +00:00

Extend mhtml submode region when in comment

* lisp/textmodes/mhtml-mode.el (mhtml-syntax-propertize): Extend
submode when start happens to be in a comment.
This commit is contained in:
Tom Tromey 2017-10-29 13:03:51 -06:00
parent 4c4ad80848
commit 056587c45f

View File

@ -293,9 +293,7 @@ can function properly.")
(unless (bobp)
(let ((submode (get-text-property (1- (point)) 'mhtml-submode)))
(if submode
;; Don't search in a comment or string
(unless (syntax-ppss-context (syntax-ppss))
(mhtml--syntax-propertize-submode submode end))
(mhtml--syntax-propertize-submode submode end)
;; No submode, so do what sgml-mode does.
(sgml-syntax-propertize-inside end))))
(funcall