]> code.delx.au - gnu-emacs/blobdiff - lisp/nxml/xmltok.el
Merge from origin/emacs-24
[gnu-emacs] / lisp / nxml / xmltok.el
index 58a2f16d5869570a0468850bb23c2e8a79554934..fe6a6050be9fe466259e1c23a71ad774125cec1f 100644 (file)
@@ -1,6 +1,6 @@
 ;;; xmltok.el --- XML tokenization  -*- lexical-binding:t -*-
 
-;; Copyright (C) 2003, 2007-2014 Free Software Foundation, Inc.
+;; Copyright (C) 2003, 2007-2015 Free Software Foundation, Inc.
 
 ;; Author: James Clark
 ;; Keywords: wp, hypermedia, languages, XML
@@ -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)