From a8fad0f6dd12d8c6a9bcb7af95d6a2e62a06389c Mon Sep 17 00:00:00 2001 From: Tom Jakubowski Date: Tue, 17 Jun 2014 05:25:30 -0700 Subject: emacs: Don't overwrite font lock for attributes This addresses the font lock regression introduced by the earlier pull request #14818 - attributes are no longer be highligted inside of comments and strings. Also add some font lock test infrastructure and some tests for attribute font locking. --- rust-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rust-mode.el') diff --git a/rust-mode.el b/rust-mode.el index 67f4951..beb2e65 100644 --- a/rust-mode.el +++ b/rust-mode.el @@ -214,7 +214,7 @@ ;; Attributes like `#[bar(baz)]` or `#![bar(baz)]` or `#[bar = "baz"]` (,(rust-re-grab (concat "#\\!?\\[" rust-re-ident "[^]]*\\]")) - 1 font-lock-preprocessor-face t) + 1 font-lock-preprocessor-face keep) ;; Syntax extension invocations like `foo!`, highlight including the ! (,(concat (rust-re-grab (concat rust-re-ident "!")) "[({[:space:][]") -- cgit v1.2.3