]> git.eshelyaron.com Git - emacs.git/commitdiff
rust-ts-mode--font-lock-settings: Improve consistency
authorDmitry Gutov <dgutov@yandex.ru>
Sun, 5 Feb 2023 19:34:12 +0000 (21:34 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Sun, 5 Feb 2023 19:34:12 +0000 (21:34 +0200)
* 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

index 571e268c221a62d6eadabb8f5850dee3cf4cbe4a..18b42b9eced8e93fb558069261e777674860e04f 100644 (file)
 
    :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