]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/nxml/nxml-mode.el (nxml-fontify-matcher): Make sure propertization
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 16 Apr 2014 15:28:26 +0000 (11:28 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 16 Apr 2014 15:28:26 +0000 (11:28 -0400)
was done.
* lisp/nxml/xmltok.el (xmltok-scan-after-comment-open): Extend unclosed
comment to EOB.

Fixes: debbugs:17264
lisp/ChangeLog
lisp/nxml/nxml-mode.el
lisp/nxml/xmltok.el
test/indent/nxml.xml [new file with mode: 0644]

index 38f71bdd78d45950c2fdcb5676f8204daff409de..e974b30700beb43848984f4453120764d71d81b9 100644 (file)
@@ -1,5 +1,10 @@
 2014-04-16  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+       * nxml/nxml-mode.el (nxml-fontify-matcher): Make sure propertization
+       was done (bug#17264).
+       * nxml/xmltok.el (xmltok-scan-after-comment-open): Extend unclosed
+       comment to EOB.
+
        * progmodes/perl-mode.el (perl-calculate-indent): Don't auto-indent in
        here-documents (bug#17262).
 
index 0daf62d804f3892079c49377e884a141ecac5411..cd50bce21521ff12534b397a3d705d4f0ab346da 100644 (file)
@@ -872,7 +872,7 @@ Called with `font-lock-beg' and `font-lock-end' dynamically bound."
 
 (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)
 
index 58a2f16d5869570a0468850bb23c2e8a79554934..f80a5fd2fa17142e0bdc9a9b056c1a6581d7539c 100644 (file)
@@ -750,7 +750,8 @@ Return the type of the token."
                  ;; 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)
diff --git a/test/indent/nxml.xml b/test/indent/nxml.xml
new file mode 100644 (file)
index 0000000..61b84f2
--- /dev/null
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<spocosy version="1.0" responsetime="2011-03-15 13:53:12" exec="0.171">
+  <!--
+      <query-response requestid="" service="objectquery">
+      <sport name="Soccer" enetSportCode="s" del="no" n="1" ut="2009-12-29
+      15:36:24" id="1">
+      </sport>
+      </query-response>
+  -->
+</spocosy>