Variable: lisp-mode-syntax-propertize-rules
lisp-mode-syntax-propertize-rules is a variable defined in
lisp-mode.el.gz.
Value
(((rx "|" (+ (or (seq (syntax escape) "|") (not "|"))) "|")
(0
(and (not (ppss-comment-or-string-start (syntax-ppss)))
(string-to-syntax "_"))))
((rx
(or (seq "#" (group-n 1 (* (any "0-9")) (any "AaCcPpSs:*.=+-")))
(seq "#" (group-n 1 (+ (any "0-9"))) "(")
(seq "," (group-n 1 (any ".@")))))
(1
(and (not (ppss-comment-or-string-start (syntax-ppss)))
(string-to-syntax "'")))))
Documentation
syntax-propertize rules for Common Lisp code.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/lisp-mode.el.gz
(eval-and-compile
(defconst lisp-mode-syntax-propertize-rules
(syntax-propertize-precompile-rules
;; Give entire multiple escape sections symbol syntax. Without
;; this, `forward-sexp' and co. treat `symbols| like |this' as
;; three expressions, and `lisp-mode-symbol-regexp' won't capture
;; escape sections at all.
((rx "|" (+ (or (seq (syntax escape) "|") (not "|"))) "|")
(0 (and (not (ppss-comment-or-string-start (syntax-ppss)))
(string-to-syntax "_"))))
;; Give numeric args and the sub character in dispatch macros prefix
;; syntax.
((rx (or (seq "#" (group-n 1 (* (any "0-9")) (any "AaCcPpSs:*.=+-")))
(seq "#" (group-n 1 (+ (any "0-9"))) "(")
(seq "," (group-n 1 (any ".@")))))
(1 (and (not (ppss-comment-or-string-start (syntax-ppss)))
(string-to-syntax "'")))))
"`syntax-propertize' rules for Common Lisp code."))