Function: xmltok-scan-after-amp
xmltok-scan-after-amp is a byte-compiled function defined in
xmltok.el.gz.
Signature
(xmltok-scan-after-amp ENTITY-HANDLER)
Source Code
;; Defined in /usr/src/emacs/lisp/nxml/xmltok.el.gz
(defun xmltok-scan-after-amp (entity-handler)
(cond ((not (looking-at (xmltok-after-amp regexp)))
(xmltok-add-error "`&' that is not markup must be entered as `&'")
(setq xmltok-type 'not-well-formed))
(t
(goto-char (match-end 0))
(cond ((xmltok-after-amp start entity-ref-close)
(funcall entity-handler
(xmltok-after-amp start entity-name)
(xmltok-after-amp end entity-name))
(setq xmltok-type 'entity-ref))
((xmltok-after-amp start decimal-ref-close)
(xmltok-scan-char-ref (xmltok-after-amp start decimal)
(xmltok-after-amp end decimal)
10))
((xmltok-after-amp start hex-ref-close)
(xmltok-scan-char-ref (xmltok-after-amp start hex)
(xmltok-after-amp end hex)
16))
((xmltok-after-amp start number-sign)
(xmltok-add-error "Missing character number")
(setq xmltok-type 'not-well-formed))
(t
(xmltok-add-error "Missing closing `;'")
(setq xmltok-type 'not-well-formed))))))