GNU bug report logs - #61302
29.0.60; rust-ts-mode does not show function-invocation on field-properties

Previous Next

Package: emacs;

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

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Randy Taylor <dev <at> rjt.dev>
Cc: eliz <at> gnu.org, Jostein Kjønigsen <jostein <at> kjonigsen.net>, 61302 <at> debbugs.gnu.org
Subject: bug#61302: 29.0.60; rust-ts-mode does not show function-invocation on field-properties
Date: Tue, 7 Feb 2023 20:25:47 +0200
On 07/02/2023 20:16, Dmitry Gutov wrote:
> On a distantly related note, we have terms like 'usize' which is 
> normally a type (and highlighted as such), but can also feature in 
> expressions like
> 
>    let row = usize::from_str_radix(row, 10).map_err(|_| error())?;
> 
> where it is now highlighted with font-lock-constant-face. Should we try 
> to do anything about that? If there is a limited number of built-in 
> types in that situation (e.g. all of them primitives), we could handle 
> that with a regexp.

Or vice versa, in

  use std::{fmt, fs, usize};

should 'fmt', 'fs' and 'usize' be highlighted with 
font-lock-constant-face rather than font-lock-type-face?




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.