bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#74277: 29.4; rust-ts-mode doesn't highlight some function calls


From: Randy Taylor
Subject: bug#74277: 29.4; rust-ts-mode doesn't highlight some function calls
Date: Sun, 10 Nov 2024 21:10:35 +0000

On Saturday, November 9th, 2024 at 03:52, Eli Zaretskii <eliz@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@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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]