Function: srecode-template-mode-font-lock-macro-helper
srecode-template-mode-font-lock-macro-helper is a byte-compiled
function defined in srt-mode.el.gz.
Signature
(srecode-template-mode-font-lock-macro-helper LIMIT EXPRESSION)
Documentation
Match against escape characters.
Don't scan past LIMIT. Match with EXPRESSION.
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/srecode/srt-mode.el.gz
(defun srecode-template-mode-font-lock-macro-helper (limit expression)
"Match against escape characters.
Don't scan past LIMIT. Match with EXPRESSION."
(let* ((done nil)
(md nil)
(es (regexp-quote (srecode-template-get-escape-start)))
(ee (regexp-quote (srecode-template-get-escape-end)))
(regex (concat es expression ee))
)
(while (not done)
(save-match-data
(if (re-search-forward regex limit t)
(when (equal (car (srecode-calculate-context)) "code")
(setq md (match-data)
done t))
(setq done t))))
(set-match-data md)
;; (when md (message "Found a match!"))
(when md t)))