branch: elpa/nasm-mode
commit c0a002bfb48ccda8b3abd5bafdf51323580cad8e
Author: Christopher Wellons <[email protected]>
Commit: Christopher Wellons <[email protected]>
Add minimal imenu support.
---
nasm-mode.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/nasm-mode.el b/nasm-mode.el
index b5aeebd..81cf6a7 100644
--- a/nasm-mode.el
+++ b/nasm-mode.el
@@ -460,7 +460,9 @@
:group 'nasm-mode
(setf font-lock-defaults '(nasm-font-lock-keywords nil :case-fold)
indent-line-function #'nasm-indent-line
- comment-start ";"))
+ comment-start ";"
+ imenu-generic-expression
+ `((nil ,(concat "^\\s-*\\(" nasm-label-regexp "\\)\\s-*:") 1))))
(provide 'nasm-mode)