aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/progmodes/rust-ts-mode.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/progmodes/rust-ts-mode.el b/lisp/progmodes/rust-ts-mode.el
index baf0e1ec013..cdbf381d023 100644
--- a/lisp/progmodes/rust-ts-mode.el
+++ b/lisp/progmodes/rust-ts-mode.el
@@ -267,7 +267,11 @@ to be checked as its standard input."
267 eos) 267 eos)
268 @font-lock-type-face)) 268 @font-lock-type-face))
269 ((scoped_identifier path: (identifier) @rust-ts-mode--fontify-scope)) 269 ((scoped_identifier path: (identifier) @rust-ts-mode--fontify-scope))
270 ((scoped_type_identifier path: (identifier) @rust-ts-mode--fontify-scope))) 270 ((scoped_type_identifier path: (identifier) @rust-ts-mode--fontify-scope))
271 ;; Sometimes the parser can't determine if an identifier is a type,
272 ;; so we use this heuristic. See bug#69625 for the full discussion.
273 ((identifier) @font-lock-type-face
274 (:match ,(rx bos upper) @font-lock-type-face)))
271 275
272 :language 'rust 276 :language 'rust
273 :feature 'property 277 :feature 'property