GNU bug report logs -
#61302
29.0.60; rust-ts-mode does not show function-invocation on field-properties
Previous Next
Reported by: jostein <at> kjonigsen.net
Date: Sun, 5 Feb 2023 20:16:01 UTC
Severity: normal
Found in version 29.0.60
Done: Dmitry Gutov <dgutov <at> yandex.ru>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
On 15/02/2023 04:07, Randy Taylor wrote:
> Basically what we have here are general scoped_identifier queries that we want to apply only to the actual code (i.e. not imports). However, these scoped_identifiers also exist in the imports and the same highlighting semantics don't apply there, so we have specific queries for the different kinds of imports that specify how they want their scoped_identifier stuff highlighted.
The only option I've been thinking of (and described in some related
report), is to replace the face name with a highlighter in Lisp.
See rust-ts-mode--fontify-pattern as an example of such function.
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.
This bug report was last modified 2 years and 91 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.