diff options
| author | Tom Jakubowski <tom@crystae.net> | 2014-06-11 04:04:00 -0700 |
|---|---|---|
| committer | Tom Jakubowski <tom@crystae.net> | 2014-06-11 05:01:16 -0700 |
| commit | fca57b3aee015b64a7c926812476cb916700ef56 (patch) | |
| tree | 7c4f2c16c869cb4400f2e230acc63c84cd5a1b64 /src | |
| parent | 4fdc27e55ec9cda0ab5315701a96d25e720ce2c3 (diff) | |
| download | rust-fca57b3aee015b64a7c926812476cb916700ef56.tar.gz rust-fca57b3aee015b64a7c926812476cb916700ef56.zip | |
emacs: do not highlight `#foo]` as an attribute
part of #14347
Diffstat (limited to 'src')
| -rw-r--r-- | src/etc/emacs/rust-mode.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/emacs/rust-mode.el b/src/etc/emacs/rust-mode.el index 175592d792b..f5a3fb92cb9 100644 --- a/src/etc/emacs/rust-mode.el +++ b/src/etc/emacs/rust-mode.el @@ -213,7 +213,7 @@ (,(regexp-opt rust-special-types 'words) . font-lock-type-face) ;; Attributes like `#[bar(baz)]` or `#![bar(baz)]` - (,(rust-re-grab (concat "#\\!?[" rust-re-ident "[^]]*\\]")) + (,(rust-re-grab (concat "#\\!?\\[" rust-re-ident "[^]]*\\]")) 1 font-lock-preprocessor-face) ;; Syntax extension invocations like `foo!`, highlight including the ! |
