Variable: imenu-generic-skip-comments-and-strings
imenu-generic-skip-comments-and-strings is a customizable variable
defined in imenu.el.gz.
Value
t
Documentation
When non-nil, ignore text inside comments and strings.
Only affects imenu-default-create-index-function (and any
alternative implementation of imenu-create-index-function that
uses imenu--generic-function).
This variable was added, or its default value changed, in Emacs 24.4.
Probably introduced at or before Emacs version 24.4.
Source Code
;; Defined in /usr/src/emacs/lisp/imenu.el.gz
(defcustom imenu-generic-skip-comments-and-strings t
"When non-nil, ignore text inside comments and strings.
Only affects `imenu-default-create-index-function' (and any
alternative implementation of `imenu-create-index-function' that
uses `imenu--generic-function')."
:type 'boolean
:version "24.4")