GNU bug report logs -
#74277
29.4; rust-ts-mode doesn't highlight some function calls
Previous Next
Reported by: acidbong <at> tilde.club
Date: Sat, 9 Nov 2024 08:22:02 UTC
Severity: normal
Tags: notabug
Found in version 29.4
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #11 received at 74277 <at> debbugs.gnu.org (full text, mbox):
On Saturday, November 9th, 2024 at 03:52, Eli Zaretskii <eliz <at> gnu.org> wrote:
>
>
> > Date: Fri, 08 Nov 2024 20:24:07 +0000
>
> > From: acidbong--- via "Bug reports for GNU Emacs,
> > the Swiss army knife of text editors" bug-gnu-emacs <at> gnu.org
> >
> > rust-ts-mode highlights function calls when they're used in an
> > assignment or as statements, but not in string formatting:
> >
> > `println!("Some line and {}", some_function(a, b)) # ^^^^^^^^^^^^^ this is not getting highlighted`
> >
> > This is how it looks in Emacs (treesit-level is 4 btw):
> > https://matrix.envs.net/_matrix/media/r0/download/envs.net/66652827fc7545e57d2eef263ee28ef6bc2ef1c01854976160883015680
> >
> > This is how it looks in Neovim (with treesitter highlighting on):
> > https://matrix.envs.net/_matrix/media/r0/download/envs.net/382a104ee3e6e4dacabebfa7f84f4b9b7231b1171854976151936565248
> >
> > -----------------------------------
>
>
> Thanks.
>
> Randy/Yuan, any suggestions or fixes?
This was discussed briefly awhile back, but it's basically going to
require special handling because macro invocations don't give us the
usual dead simple way of doing it.
Maybe it's easy enough to see if the identifier has parentheses
immediately following it...
I probably won't have a chance to take a crack at it anytime soon, so
if anyone wants to beat me to it, feel free.
This bug report was last modified 133 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.