From 85601f50f236686da662b1b00e01df0a0abe761b Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Wed, 22 Jul 2026 11:10:34 +0200 Subject: Update markdown-mode, rust-mode and yaml-mode. Remove unused snippets --- .emacs.d/lisp/rust-prog-mode.el | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to '.emacs.d/lisp/rust-prog-mode.el') diff --git a/.emacs.d/lisp/rust-prog-mode.el b/.emacs.d/lisp/rust-prog-mode.el index f2f3f0b..ea6ef82 100644 --- a/.emacs.d/lisp/rust-prog-mode.el +++ b/.emacs.d/lisp/rust-prog-mode.el @@ -112,6 +112,14 @@ to the function arguments. When nil, `->' will be indented one level." (or space line-start) (group symbol-start "union" symbol-end) (+ space) (regexp ,rust-re-ident)))) +(defconst rust-re-raw + (rx-to-string + `(seq + "&" + (zero-or-more space) + (group "raw") + (one-or-more space) + (or "const" "mut")))) (defun rust-re-item-def (itype) (concat (rust-re-word itype) @@ -269,6 +277,7 @@ Does not match type annotations of the form \"foo::<\"." ;; Contextual keywords ("\\_<\\(default\\)[[:space:]]+fn\\_>" 1 font-lock-keyword-face) (,rust-re-union 1 font-lock-keyword-face) + (,rust-re-raw 1 font-lock-keyword-face) ;; Special types (,(regexp-opt rust-special-types 'symbols) . font-lock-type-face) -- cgit v1.3