Variable: js--macro-decl-re

js--macro-decl-re is a variable defined in js.el.gz.

Value

"^\\s-*#\\s-*define\\s-+\\([[:alpha:]_$]\\(?:\\s_\\|\\sw\\)*\\)\\s-*("

Documentation

Regexp matching a CPP macro definition, up to the opening parenthesis.

Match group 1 is the name of the macro.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/js.el.gz
(defconst js--macro-decl-re
  (concat "^\\s-*#\\s-*define\\s-+\\(" js--cpp-name-re "\\)\\s-*(")
  "Regexp matching a CPP macro definition, up to the opening parenthesis.
Match group 1 is the name of the macro.")