diff options
author | Noam Postavsky <npostavs@gmail.com> | 2019-05-26 17:41:22 -0400 |
---|---|---|
committer | Noam Postavsky <npostavs@gmail.com> | 2019-06-04 08:42:50 -0400 |
commit | e04f93e18a8083d3a4930decc523c4f5d9a97c9e (patch) | |
tree | 722f68d42f709333db9cd0cec46fe71a78bdaeac /lisp/nxml/nxml-mode.el | |
parent | 438e4804d107720f526d0c7c367cbd029f264676 (diff) | |
download | emacs-e04f93e18a8083d3a4930decc523c4f5d9a97c9e.tar.gz emacs-e04f93e18a8083d3a4930decc523c4f5d9a97c9e.tar.bz2 emacs-e04f93e18a8083d3a4930decc523c4f5d9a97c9e.zip |
Don't fontify text outside of SGML/XML tags (Bug#33887)
* lisp/textmodes/sgml-mode.el (sgml-font-lock-syntactic-face): New
function.
(sgml-mode):
* lisp/nxml/nxml-mode.el (nxml-mode): Use it as
font-lock-syntactic-face-function value.
Diffstat (limited to 'lisp/nxml/nxml-mode.el')
-rw-r--r-- | lisp/nxml/nxml-mode.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/nxml/nxml-mode.el b/lisp/nxml/nxml-mode.el index 8da9f5ca287..232352b26bd 100644 --- a/lisp/nxml/nxml-mode.el +++ b/lisp/nxml/nxml-mode.el @@ -540,7 +540,9 @@ Many aspects this mode can be customized using nil ; no special syntax table (font-lock-extend-region-functions . (nxml-extend-region)) (jit-lock-contextually . t) - (font-lock-unfontify-region-function . nxml-unfontify-region))) + (font-lock-unfontify-region-function . nxml-unfontify-region) + (font-lock-syntactic-face-function + . sgml-font-lock-syntactic-face))) (with-demoted-errors (rng-nxml-mode-init))) |