Function: syntax-propertize-precompile-rules

syntax-propertize-precompile-rules is a macro defined in syntax.el.gz.

Signature

(syntax-propertize-precompile-rules &rest RULES)

Documentation

Return a precompiled form of RULES to pass to syntax-propertize-rules.

The arg RULES can be of the same form as in syntax-propertize-rules. The return value is an object that can be passed as a rule to syntax-propertize-rules. I.e. this is useful only when you want to share rules among several syntax-propertize-functions.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/syntax.el.gz
(defmacro syntax-propertize-precompile-rules (&rest rules)
  "Return a precompiled form of RULES to pass to `syntax-propertize-rules'.
The arg RULES can be of the same form as in `syntax-propertize-rules'.
The return value is an object that can be passed as a rule to
`syntax-propertize-rules'.
I.e. this is useful only when you want to share rules among several
`syntax-propertize-function's."
  (declare (debug syntax-propertize-rules))
  ;; Precompile?  Yeah, right!
  ;; Seriously, tho, this is a macro for 2 reasons:
  ;; - we could indeed do some pre-compilation at some point in the future,
  ;;   e.g. fi/when we switch to a DFA-based implementation of
  ;;   syntax-propertize-rules.
  ;; - this lets Edebug properly annotate the expressions inside RULES.
  `',rules)