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.
2 parents 8f1297a + cc59c83 commit 5c68cafCopy full SHA for 5c68caf
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
@@ -569,6 +570,7 @@ buffer."
569
570
(defun rust-re-item-def-imenu (itype)
571
(concat "^[[:space:]]*"
572
(rust-re-shy (concat (rust-re-word rust-re-vis) "[[:space:]]+")) "?"
573
+ (rust-re-shy (concat (rust-re-word rust-re-unsafe) "[[:space:]]+")) "?"
574
(rust-re-item-def itype)))
575
576
(defconst rust-re-special-types (regexp-opt rust-special-types 'symbols))
0 commit comments