[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: |
Wed, 01 May 2024 02:38:43 +0000 |
On Monday, April 29th, 2024 at 19:22, Noah Peart <noah.v.peart@gmail.com> wrote:
> Tags: patch
>
>
> Adds font-locking for functions in go-ts-mode declared in var specs.
>
> Currently, all the identifiers in var specs are given
> font-lock-variable-name-face font-locking.
>
> This patch adds a rule to give identifiers in var specs
> font-lock-function-name-face when they are function types.
>
> For example, the following test is included in the patch, showing where
> font-lock-function-name is applied:
>
> var x, y, z int
> // ^ font-lock-variable-name-face
> // ^ font-lock-variable-name-face
> // ^ font-lock-type-face
> var foo, bar func(x int) int
> // ^ font-lock-function-name-face
> // ^ font-lock-function-name-face
> // ^ font-lock-variable-name-face
> // ^ font-lock-type-face
> // ^ font-lock-type-face
Thanks for working on this.
I'm not sure we want to do this though, since they are still variables.