Function: nxml-fontify-attribute

nxml-fontify-attribute is a byte-compiled function defined in nxml-mode.el.gz.

Signature

(nxml-fontify-attribute ATT &optional NAMESPACE-DECLARATION)

Source Code

;; Defined in /usr/src/emacs/lisp/nxml/nxml-mode.el.gz
(defun nxml-fontify-attribute (att &optional namespace-declaration)
  (if namespace-declaration
      (nxml-fontify-qname (xmltok-attribute-name-start att)
			  (xmltok-attribute-name-colon att)
			  (xmltok-attribute-name-end att)
			  'nxml-namespace-attribute-xmlns
			  'nxml-namespace-attribute-colon
			  'nxml-namespace-attribute-prefix
			  'nxml-namespace-attribute-xmlns)
    (nxml-fontify-qname (xmltok-attribute-name-start att)
			(xmltok-attribute-name-colon att)
			(xmltok-attribute-name-end att)
			'nxml-attribute-prefix
			'nxml-attribute-colon
			'nxml-attribute-local-name))
  (dolist (ref (xmltok-attribute-refs att))
    (let* ((ref-type (aref ref 0))
           (ref-start (aref ref 1))
           (ref-end (aref ref 2)))
      (nxml-apply-fontify-rule ref-type ref-start ref-end))))