[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-26 056587c 3/3: Extend mhtml submode region when in
From: |
Tom Tromey |
Subject: |
[Emacs-diffs] emacs-26 056587c 3/3: Extend mhtml submode region when in comment |
Date: |
Sun, 29 Oct 2017 15:09:22 -0400 (EDT) |
branch: emacs-26
commit 056587c45fd964c0367e970c52914260977f889d
Author: Tom Tromey <address@hidden>
Commit: Tom Tromey <address@hidden>
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.
---
lisp/textmodes/mhtml-mode.el | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/lisp/textmodes/mhtml-mode.el b/lisp/textmodes/mhtml-mode.el
index 2c1b26d..5854167 100644
--- a/lisp/textmodes/mhtml-mode.el
+++ b/lisp/textmodes/mhtml-mode.el
@@ -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