imenu-syntax-alist

imenu-syntax-alist is a variable defined in `imenu.el'.
Its value is
nil

  • Automatically becomes buffer-local when set.

Documentation:
Alist of syntax table modifiers to use while in `imenu--generic-function'.

The car of the assocs may be either a character or a string and the
cdr is a syntax description appropriate for `modify-syntax-entry'. For
a string, all the characters in the string get the specified syntax.

This is typically used to give word syntax to characters which
normally have symbol syntax to simplify `imenu-expression'
and speed-up matching.