Function: meta-font-lock-match-declaration-item-and-skip-to-next
meta-font-lock-match-declaration-item-and-skip-to-next is a
byte-compiled function defined in meta-mode.el.gz.
Signature
(meta-font-lock-match-declaration-item-and-skip-to-next LIMIT)
Aliases
font-lock-match-meta-declaration-item-and-skip-to-next (obsolete since 29.1)
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/meta-mode.el.gz
(defun meta-font-lock-match-declaration-item-and-skip-to-next (limit)
;; Match and move over Metafont/MetaPost declaration item after point.
;;
;; The expected syntax of an item is either "word" or "symbol",
;; possibly ending with optional whitespace. Everything following
;; the item (but belonging to it) is expected to by skippable by
;; `forward-sexp'. The list of items is expected to be separated
;; by commas and terminated by semicolons or equals signs.
;;
(if (looking-at "[ \t\f]*\\(\\sw+\\|\\s_+\\)")
(save-match-data
(condition-case nil
(save-restriction
;; Restrict to end of line, currently guaranteed to be LIMIT.
(narrow-to-region (point-min) limit)
(goto-char (match-end 1))
;; Move over any item value, etc., to the next item.
(while (not (looking-at "[ \t\f]*\\(\\(,\\)\\|;\\|=\\|$\\)"))
(goto-char (or (scan-sexps (point) 1) (point-max))))
(goto-char (match-end 2)))
(error t)))))