about summary refs log tree commit diff
path: root/src/etc
diff options
context:
space:
mode:
authorTom Jakubowski <tom@crystae.net>2014-06-11 05:06:51 -0700
committerTom Jakubowski <tom@crystae.net>2014-06-11 05:06:51 -0700
commite5baf1d94a6c2c41fa4307c4dd3105afe5924a71 (patch)
treecb5bf9b5d9107eeeb47ef75e710fc100fc35d947 /src/etc
parentfca57b3aee015b64a7c926812476cb916700ef56 (diff)
downloadrust-e5baf1d94a6c2c41fa4307c4dd3105afe5924a71.tar.gz
rust-e5baf1d94a6c2c41fa4307c4dd3105afe5924a71.zip
emacs: highlight `#[foo = "bar"]` attributes
Setting `OVERRIDE` to `t` overrides the conflicting highlight Emacs
places on string literals.

Fix #14347
Diffstat (limited to 'src/etc')
-rw-r--r--src/etc/emacs/rust-mode.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/etc/emacs/rust-mode.el b/src/etc/emacs/rust-mode.el
index f5a3fb92cb9..bec78302f05 100644
--- a/src/etc/emacs/rust-mode.el
+++ b/src/etc/emacs/rust-mode.el
@@ -212,9 +212,9 @@
      ;; Special types
      (,(regexp-opt rust-special-types 'words) . font-lock-type-face)
 
-     ;; Attributes like `#[bar(baz)]` or `#![bar(baz)]`
+     ;; Attributes like `#[bar(baz)]` or `#![bar(baz)]` or `#[bar = "baz"]`
      (,(rust-re-grab (concat "#\\!?\\[" rust-re-ident "[^]]*\\]"))
-      1 font-lock-preprocessor-face)
+      1 font-lock-preprocessor-face t)
 
      ;; Syntax extension invocations like `foo!`, highlight including the !
      (,(concat (rust-re-grab (concat rust-re-ident "!")) "[({[:space:][]")