]> git.eshelyaron.com Git - emacs.git/commit
rust-ts-mode--font-lock-settings: Avoid the explicit 'default' face
authorDmitry Gutov <dgutov@yandex.ru>
Sun, 19 Feb 2023 17:18:19 +0000 (19:18 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Sun, 19 Feb 2023 17:18:19 +0000 (19:18 +0200)
commit1ac05eac74bfd927de2d399cacc68a77ee72847d
tree00926cf169b720887b05016a9659545a66dfb23d
parentb5bea14ca178b9f0c3944a9a14363c9923853814
rust-ts-mode--font-lock-settings: Avoid the explicit 'default' face

* lisp/progmodes/rust-ts-mode.el (rust-ts-mode--fontify-scope)
(rust-ts-mode--fontify-tail): New functions.
(rust-ts-mode--font-lock-settings): Use them instead of a lot of
more complex queries (bug#61302).  Thus avoid having to create
block fontification by other features using the 'default' face.
Replace the catch-all query for 'variable' with an enumeration of
possible parent nodes.
lisp/progmodes/rust-ts-mode.el