# HG changeset patch # User Oleksandr Gavenko # Date 1317108888 -10800 # Node ID 98687875846ee4948d84a337bed4dd0d062ae382 # Parent 7f0d6be0a3edf9a8ad5dc2f1a69327f60822fe72 Section can be quoted by '"'. Handle this situation. diff -r 7f0d6be0a3ed -r 98687875846e nsis-mode.el --- a/nsis-mode.el Tue Sep 27 10:33:24 2011 +0300 +++ b/nsis-mode.el Tue Sep 27 10:34:48 2011 +0300 @@ -78,7 +78,7 @@ (setq nsis-imenu-generic-expression '( ("Defines" "^!define[[:blank:]]+\\([[:word:]]+\\)" 1) - ("Sections" "^Section[[:blank:]]+\\(-?[[:word:]]+\\)" 1) + ("Sections" "^Section[[:blank:]]+\"?\\(-?[[:word:]]+\\)\"?" 1) ("Functions" "^Function[[:blank:]]+\\([[:word:]]+\\)" 1) ("Macros" "^!macro[[:blank:]]+\\([[:word:]]+\\)" 1) ))