* lisp/nxml/nxml-mode.el (nxml-mode): Use new sgml-syntax-propertize.

This commit is contained in:
Stefan Monnier 2017-02-28 09:35:25 -05:00
parent 0055190174
commit a3069604d5

View file

@ -518,7 +518,7 @@ Many aspects this mode can be customized using
(nxml-with-invisible-motion
(nxml-scan-prolog)))))
(setq-local syntax-ppss-table sgml-tag-syntax-table)
(setq-local syntax-propertize-function sgml-syntax-propertize-function)
(setq-local syntax-propertize-function #'sgml-syntax-propertize)
(add-hook 'change-major-mode-hook #'nxml-cleanup nil t)
;; Emacs 23 handles the encoding attribute on the xml declaration