diff options
| author | brotzeit <brotzeitmacher@gmail.com> | 2021-10-22 21:01:17 +0200 |
|---|---|---|
| committer | brotzeit <brotzeitmacher@gmail.com> | 2021-10-22 19:28:52 +0200 |
| commit | bc5bc7f13ae52e61c1eeb5ce5f898b9c04212dce (patch) | |
| tree | 74ee708f8e6c88b9b73f562511f28a3e839734a6 /rust-mode.el | |
| parent | 06ea73f121a7f82f01e93b0b422f98d657ec6661 (diff) | |
| download | rust-mode-bc5bc7f13ae52e61c1eeb5ce5f898b9c04212dce.tar.gz | |
update regexes used in rust-top-item-beg-re
Diffstat (limited to 'rust-mode.el')
| -rw-r--r-- | rust-mode.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rust-mode.el b/rust-mode.el index 58897fd..f513065 100644 --- a/rust-mode.el +++ b/rust-mode.el @@ -267,7 +267,7 @@ Use idomenu (imenu with `ido-mode') for best mileage.") (add-to-list 'auto-mode-alist '("\\.rs\\'" . rust-mode)) (defvar rust-top-item-beg-re - (concat "\\s-*" + (concat "\\s-*\\(?:priv\\|pub\\)?\\s-*" ;; TODO some of this does only make sense for `fn' (unsafe, extern...) ;; and not other items (rust-re-shy (concat (rust-re-shy rust-re-vis) "[[:space:]]+")) "?" @@ -275,7 +275,7 @@ Use idomenu (imenu with `ido-mode') for best mileage.") (rust-re-shy (concat (rust-re-shy rust-re-unsafe) "[[:space:]]+")) "?" (regexp-opt '("enum" "struct" "union" "type" "mod" "use" "fn" "static" "impl" - "extern" "trait")) + "extern" "trait" "async")) "\\_>") "Start of a Rust item.") |
