[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-29 088425538f: rust-ts-mode--font-lock-settings: Improve consisten
From: |
Dmitry Gutov |
Subject: |
emacs-29 088425538f: rust-ts-mode--font-lock-settings: Improve consistency |
Date: |
Sun, 5 Feb 2023 14:34:27 -0500 (EST) |
branch: emacs-29
commit 088425538f2122d88a4f4e132dbb2f1139648531
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>
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 571e268c22..18b42b9ece 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-29 088425538f: rust-ts-mode--font-lock-settings: Improve consistency,
Dmitry Gutov <=