From 088425538f2122d88a4f4e132dbb2f1139648531 Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Sun, 5 Feb 2023 21:34:12 +0200 Subject: [PATCH] rust-ts-mode--font-lock-settings: Improve consistency * lisp/progmodes/rust-ts-mode.el (rust-ts-mode--font-lock-settings): Remove the rule that highlighted scope identifier in a function call as type. The existing rules will handle it when it does look like a type (capitalized). --- lisp/progmodes/rust-ts-mode.el | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lisp/progmodes/rust-ts-mode.el b/lisp/progmodes/rust-ts-mode.el index 571e268c221..18b42b9eced 100644 --- a/lisp/progmodes/rust-ts-mode.el +++ b/lisp/progmodes/rust-ts-mode.el @@ -206,10 +206,7 @@ :language 'rust :feature 'type - `((call_expression - function: (scoped_identifier - path: (identifier) @font-lock-type-face)) - (enum_variant name: (identifier) @font-lock-type-face) + `((enum_variant name: (identifier) @font-lock-type-face) (match_arm pattern: (match_pattern (_ type: (identifier) @font-lock-type-face))) (match_arm -- 2.39.5