Section name can contain spaces. Handle this situation.
--- a/nsis-mode.el Tue Sep 27 10:34:48 2011 +0300
+++ b/nsis-mode.el Tue Sep 27 10:37:34 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)
))