emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/nasm-mode c0a002b 13/67: Add minimal imenu support.


From: ELPA Syncer
Subject: [nongnu] elpa/nasm-mode c0a002b 13/67: Add minimal imenu support.
Date: Sun, 29 Aug 2021 11:23:44 -0400 (EDT)

branch: elpa/nasm-mode
commit c0a002bfb48ccda8b3abd5bafdf51323580cad8e
Author: Christopher Wellons <wellons@nullprogram.com>
Commit: Christopher Wellons <wellons@nullprogram.com>

    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)
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]