imenu-generic-skip-comments-and-strings
imenu-generic-skip-comments-and-strings is a variable defined in `imenu.el
'.
Its value is tDocumentation: When non-nil, ignore text inside comments and strings. Only affects `imenu--generic-function'. You can customize this variable. This variable was introduced, or its default value was changed, in version 24.4 of Emacs.