We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1587839 commit cc59c83Copy full SHA for cc59c83
rust-mode.el
@@ -32,6 +32,7 @@
32
(defconst rust-re-lc-ident "[[:lower:][:multibyte:]_][[:word:][:multibyte:]_[:digit:]]*")
33
(defconst rust-re-uc-ident "[[:upper:]][[:word:][:multibyte:]_[:digit:]]*")
34
(defconst rust-re-vis "pub")
35
+(defconst rust-re-unsafe "unsafe")
36
37
(defconst rust-re-non-standard-string
38
(rx
@@ -556,6 +557,7 @@ buffer."
556
557
(defun rust-re-item-def-imenu (itype)
558
(concat "^[[:space:]]*"
559
(rust-re-shy (concat (rust-re-word rust-re-vis) "[[:space:]]+")) "?"
560
+ (rust-re-shy (concat (rust-re-word rust-re-unsafe) "[[:space:]]+")) "?"
561
(rust-re-item-def itype)))
562
563
(defconst rust-re-special-types (regexp-opt rust-special-types 'symbols))
0 commit comments