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

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

bug#61302: 29.0.60; rust-ts-mode does not show function-invocation on fi


From: Dmitry Gutov
Subject: bug#61302: 29.0.60; rust-ts-mode does not show function-invocation on field-properties
Date: Sat, 18 Feb 2023 05:27:06 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2

On 16/02/2023 03:53, Dmitry Gutov wrote:
But the new one will need to check that the parent is 'scoped_identifier', and the grandparent is not a 'call_expression' node, or 'use_as_clause', or 'use_declaration', etc, and the name itself is lowercase -- when so, skip highlighting. And highlight with one of the two faces when otherwise.

Shouldn't be too hard to do, but I'm wary about the additional cost at runtime.

So, this seems to work.

At the cost of some performance overhead due to :pred in the 'variable' query (the rest of the changes don't seem to affect the runtime -- guess the Lisp calls were balanced out by fewer queries).

Attachment: rust-ts-fontify-scope.diff
Description: Text Data


reply via email to

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