Variable: js--plain-method-re

js--plain-method-re is a variable defined in js.el.gz.

Value

"^\\s-*?\\([[:alpha:]_$]\\(?:\\s_\\|\\sw\\)*\\(?:\\.[[:alpha:]_$]\\(?:\\s_\\|\\sw\\)*\\)*\\)\\.prototype\\.\\([[:alpha:]_$]\\(?:\\s_\\|\\sw\\)*\\)\\s-*?=\\s-*?\\(function\\)\\_>"

Documentation

Regexp matching an explicit JavaScript prototype "method" declaration.

Group 1 is a (possibly-dotted) class name, group 2 is a method name, and group 3 is the function keyword.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/js.el.gz
(defconst js--plain-method-re
  (concat "^\\s-*?\\(" js--dotted-name-re "\\)\\.prototype"
          "\\.\\(" js--name-re "\\)\\s-*?=\\s-*?\\(function\\)\\_>")
  "Regexp matching an explicit JavaScript prototype \"method\" declaration.
Group 1 is a (possibly-dotted) class name, group 2 is a method name,
and group 3 is the `function' keyword.")