]> git.eshelyaron.com Git - emacs.git/commit
Add expression for generic_name in csharp-ts-mode (bug#59897)
authorTheodor Thornhill <theo@thornhill.no>
Thu, 8 Dec 2022 10:08:28 +0000 (11:08 +0100)
committerYuan Fu <casouri@gmail.com>
Mon, 12 Dec 2022 23:08:54 +0000 (15:08 -0800)
commit647b6a8099f414e5a7b162efd3658e174064dfe7
treea1a1c7393e0ea87c5202e0ad06df2fb188cf9dcb
parent5b178efd85a65dd44c33058948ad5fe18b580067
Add expression for generic_name in csharp-ts-mode (bug#59897)

Given the below example, we want 'services' to be font-locked in
'font-lock-variable-name-face' in all cases.  Previously this only
worked in the first case, and the other was font-locked as
'font-lock-function-name-face'.

namespace Foo {
    void Foo() {
        services.Add();
        services.Add<MyType>();
    }
}

* lisp/progmodes/csharp-mode.el (csharp-ts-mode--font-lock-settings):
Add new query that makes the mentioned example work.
lisp/progmodes/csharp-mode.el