Variable: cperl--field-declaration-rx
cperl--field-declaration-rx is a variable defined in cperl-mode.el.gz.
Value
Large value
(sequence "field"
(1+
(or (sequence (or space "\n"))
(sequence "#" (0+ (not (in "\n"))) "\n")))
(sequence (in "$@%") (regex "[_[:alpha:]][_[:word:]]*"))
(optional
(sequence
(1+
(or (sequence (or space "\n"))
(sequence "#" (0+ (not (in "\n"))) "\n")))
(sequence ":"
(optional
(0+
(or (sequence (or space "\n"))
(sequence "#" (0+ (not (in "\n"))) "\n")))
(sequence (regex "[_[:alpha:]][_[:word:]]*")
(optional
(sequence "("
(0+
(or
(sequence "\\"
not-newline)
(not (any "()\\"))
(sequence "("
(zero-or-more
(not
(any "()\\")))
")")))
")")))
(0+
(sequence
(or
(sequence
(0+
(or (sequence (or space "\n"))
(sequence "#" (0+ (not (in "\n")))
"\n")))
":"
(0+
(or (sequence (or space "\n"))
(sequence "#" (0+ (not (in "\n")))
"\n"))))
(1+
(or (sequence (or space "\n"))
(sequence "#" (0+ (not (in "\n"))) "\n"))))
(sequence (regex "[_[:alpha:]][_[:word:]]*")
(optional
(sequence "("
(0+
(or
(sequence "\\"
not-newline)
(not (any "()\\"))
(sequence "("
(zero-or-more
(not
(any
"()\\")))
")")))
")")))))
(optional ":"))))))
Documentation
A regular expression to find a declaration for a field.
Fields can have attributes for fontification, and even for imenu because for example ":reader" implicitly declares a method.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/cperl-mode.el.gz
(defconst cperl--field-declaration-rx
`(sequence
"field"
(1+ ,cperl--ws-or-comment-rx)
,cperl--basic-variable-rx
(optional (sequence ,cperl--ws+-rx ,cperl--attribute-list-rx))
)
"A regular expression to find a declaration for a field.
Fields can have attributes for fontification, and even for imenu because
for example \":reader\" implicitly declares a method.")