bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#17264: 24.4.50; nxml-mode does not apply comment face correctly


From: Jan D.
Subject: bug#17264: 24.4.50; nxml-mode does not apply comment face correctly
Date: Wed, 16 Apr 2014 18:31:11 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:17.0) Gecko/20130328 Thunderbird/17.0.5

Hello.
Stefan Monnier skrev 2014-04-16 17:28:
The commented section is in comment face (red text color).
Actual:
The commented region is not in the comment-face, it is fontified as
normal XML.

I installed the patch below which seems to help.  It's kind of a mess, tho.


It does, thanks.

        Jan D.



         Stefan


=== modified file 'lisp/nxml/nxml-mode.el'
--- lisp/nxml/nxml-mode.el      2014-03-21 06:56:55 +0000
+++ lisp/nxml/nxml-mode.el      2014-04-16 15:22:57 +0000
@@ -872,7 +872,7 @@

  (defun nxml-fontify-matcher (bound)
    "Called as font-lock keyword matcher."
-
+  (syntax-propertize bound)
    (unless nxml-degraded
      (nxml-debug-change "nxml-fontify-matcher" (point) bound)


=== modified file 'lisp/nxml/xmltok.el'
--- lisp/nxml/xmltok.el 2014-03-21 06:56:55 +0000
+++ lisp/nxml/xmltok.el 2014-04-16 15:05:55 +0000
@@ -750,7 +750,8 @@
                   ;; Need do this after the goto-char because
                   ;; marked error should just apply to <!--
                   (xmltok-add-error "First following `--' not followed by `>'")
-                 'not-well-formed)))))
+                 (goto-char (point-max))
+                 'comment)))))

  (defun xmltok-scan-attributes ()
    (let ((recovering nil)







reply via email to

[Prev in Thread] Current Thread [Next in Thread]