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

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

[nongnu] elpa/rust-mode cc59c83 270/486: Recognize imenu items starting


From: ELPA Syncer
Subject: [nongnu] elpa/rust-mode cc59c83 270/486: Recognize imenu items starting with "unsafe"
Date: Sat, 7 Aug 2021 09:25:34 -0400 (EDT)

branch: elpa/rust-mode
commit cc59c8387fde46b673a1784c60ff5117ed82eef0
Author: mrBliss <dewinant@gmail.com>
Commit: mrBliss <dewinant@gmail.com>

    Recognize imenu items starting with "unsafe"
---
 rust-mode.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/rust-mode.el b/rust-mode.el
index 2c97433..b5f62cb 100644
--- a/rust-mode.el
+++ b/rust-mode.el
@@ -32,6 +32,7 @@
 (defconst rust-re-lc-ident 
"[[:lower:][:multibyte:]_][[:word:][:multibyte:]_[:digit:]]*")
 (defconst rust-re-uc-ident "[[:upper:]][[:word:][:multibyte:]_[:digit:]]*")
 (defconst rust-re-vis "pub")
+(defconst rust-re-unsafe "unsafe")
 
 (defconst rust-re-non-standard-string
   (rx
@@ -556,6 +557,7 @@ buffer."
 (defun rust-re-item-def-imenu (itype)
   (concat "^[[:space:]]*"
           (rust-re-shy (concat (rust-re-word rust-re-vis) "[[:space:]]+")) "?"
+          (rust-re-shy (concat (rust-re-word rust-re-unsafe) "[[:space:]]+")) 
"?"
           (rust-re-item-def itype)))
 
 (defconst rust-re-special-types (regexp-opt rust-special-types 'symbols))



reply via email to

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