all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#69625: 30.0.50; [PATCH] rust-ts-mode doesn't fontify some enum
@ 2024-03-08  4:43 Yuan Fu
  2024-03-08 22:56 ` Dmitry Gutov
  2024-03-09  3:50 ` Randy Taylor
  0 siblings, 2 replies; 16+ messages in thread
From: Yuan Fu @ 2024-03-08  4:43 UTC (permalink / raw)
  To: 69625

X-Debug-CC: dev@rjt.dev <mailto:dev@rjt.dev>

(I lied a little bit about on the [PATCH] part: I have a solution but didn’t turn it into a patch yet.)

The problem is follows: given the rust code below, some enum are not fontified with type face under font lock level 3, and those enum are fontified as function or variable under font lock level 4.

fn main() {
    func(MyEnum::VariantA(0));
    func(MyEnum::VariantB);
    func(VariantC);
    func(VariantD(0));
}

VariantA and VariantB are fontified correctly, but VariantC and VariantD are not.

I think a simple rule that fontifies every capitalized identifier would fix this. But I don’t know if that’ll create other problem. AFAIK capitalized identifier is always some type in rust, right?

This is first reported on rust-mode’s GitHub repo: https://github.com/rust-lang/rust-mode/issues/518

Yuan




^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2024-07-06 21:10 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-08  4:43 bug#69625: 30.0.50; [PATCH] rust-ts-mode doesn't fontify some enum Yuan Fu
2024-03-08 22:56 ` Dmitry Gutov
2024-03-09  3:50 ` Randy Taylor
2024-03-15  1:52   ` Dmitry Gutov
2024-03-16  1:37     ` Randy Taylor
2024-04-08  7:25     ` Yuan Fu
2024-06-22 11:07       ` Stefan Kangas
2024-06-22 23:17         ` Yuan Fu
2024-06-28  2:40           ` Randy Taylor
2024-06-28  4:43             ` Yuan Fu
2024-06-29  2:37               ` Randy Taylor
2024-06-29  3:03                 ` Stefan Kangas
2024-06-29  5:41                   ` Yuan Fu
2024-06-29 19:08                     ` Randy Taylor
2024-07-06  8:05                       ` Eli Zaretskii
2024-07-06 21:10                         ` Yuan Fu

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.