From: Dmitry Gutov Date: Sun, 5 Feb 2023 19:34:12 +0000 (+0200) Subject: rust-ts-mode--font-lock-settings: Improve consistency X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~16^2~928 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=088425538f2122d88a4f4e132dbb2f1139648531;p=emacs.git 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). --- 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