Variable: cperl--block-declaration-rx

cperl--block-declaration-rx is a variable defined in cperl-mode.el.gz.

Value

Large value
(sequence
 (or "package" "sub")
 (1+
  (or
   (sequence
    (or space "\n"))
   (sequence "#"
	     (0+
	      (not
	       (in "\n")))
	     "\n")))
 (or
  (sequence
   (1+
    (sequence
     (opt
      (sequence
       (or alpha "_")
       (*
	(or word "_"))))
     "::"))
   (opt
    (sequence
     (or alpha "_")
     (*
      (or word "_")))))
  (sequence
   (or alpha "_")
   (*
    (or word "_")))))

Documentation

A regular expression to find a declaration for a named block.

Used for indentation. These declarations introduce a block which does not need a semicolon to terminate the statement.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/cperl-mode.el.gz
(defconst cperl--block-declaration-rx
  `(sequence
    (or "package" "sub")  ; "class" and "method" coming soon
    (1+ ,cperl--ws-or-comment-rx)
    ,cperl--normal-identifier-rx)
  "A regular expression to find a declaration for a named block.
Used for indentation.  These declarations introduce a block which
does not need a semicolon to terminate the statement.")