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

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

bug#70657: [PATCH] Add go-ts-mode font-locking for function var decls


From: Randy Taylor
Subject: bug#70657: [PATCH] Add go-ts-mode font-locking for function var decls
Date: Thu, 09 May 2024 00:30:14 +0000

On Thursday, May 2nd, 2024 at 06:27, Noah Peart <noah.v.peart@gmail.com> wrote:
> > Do we know how does other editors fontify this statement? Or maybe we can 
> > look
> > at how does the official documentation highlight their code?
> 
> From what I can tell, both neovim and vscode give them variable font-locking 
> (basic vim doesnt
> give them any font). The syntax highlighting is very basic in the official 
> docs I looked at (just the repl in Tour of Go), not
> giving variables any highlight.
> 
> They are variables with function values like Randy said, and looking now at 
> other languages
> it seems like they all give variable font-locking to named closures (eg. 
> rust-ts-mode, lambdas in ruby-ts-mode).
> 
> > I'm not sure we want to do this though, since they are still variables.
> 
> Sounds good, thanks for taking a look.

Closing.





reply via email to

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