Function: hif-canonicalize-tokens
hif-canonicalize-tokens is a byte-compiled function defined in
hideif.el.gz.
Signature
(hif-canonicalize-tokens REGEXP)
Documentation
Return the expanded result of the scanned tokens.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/hideif.el.gz
;;;----------- end of parser -----------------------
(defun hif-canonicalize-tokens (regexp) ; For debugging
"Return the expanded result of the scanned tokens."
(save-excursion
(re-search-forward regexp)
(let* ((curr-regexp (match-string 0))
(defined (string-match hif-ifxdef-regexp curr-regexp))
(negate (and defined
(string= (match-string 2 curr-regexp) "n")))
(hif-simple-token-only nil) ;; Dynamic binding var for `hif-tokenize'
(tokens (hif-tokenize (point)
(progn (hif-end-of-line) (point)))))
(if defined
(setq tokens (list 'hif-defined tokens)))
(if negate
(setq tokens (list 'hif-not tokens)))
tokens)))