js--function-heading-2-re

js--function-heading-2-re is a variable defined in `js.el'.
Its value is

"^\\s-*\\([a-zA-Z_$]\\(?:\\s_\\|\\sw\\)*\\)\\s-*:\\s-*function\\_>"

  • This variable may be risky if used as a file-local variable.

Documentation:
Regexp matching the start of a function entry in an associative array.
Match group 1 is the name of the function.