Function: js--class-decl-matcher
js--class-decl-matcher is a byte-compiled function defined in
js.el.gz.
Signature
(js--class-decl-matcher LIMIT)
Documentation
Font lock function used by js-mode.
This performs fontification according to js--class-styles.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/js.el.gz
(defun js--class-decl-matcher (limit)
"Font lock function used by `js-mode'.
This performs fontification according to `js--class-styles'."
(when js-enabled-frameworks
(cl-loop initially (js--ensure-cache limit)
while (re-search-forward js--quick-match-re limit t)
for orig-end = (match-end 0)
do (goto-char (match-beginning 0))
if (cl-loop for style in js--class-styles
for decl-re = (plist-get style :class-decl)
if (and (memq (plist-get style :framework)
js-enabled-frameworks)
(memq (js-syntactic-context)
(plist-get style :contexts))
decl-re
(looking-at decl-re))
do (goto-char (match-end 0))
and return t)
return t
else do (goto-char orig-end))))