GNU bug report logs - #59735
29.0.60; csharp-ts-mode: imported namespaces are fontified inconsistently

Previous Next

Package: emacs;

Reported by: jostein <at> kjonigsen.net

Date: Thu, 1 Dec 2022 08:36:02 UTC

Severity: minor

Found in version 29.0.60

Fixed in version 29.1

Done: Yuan Fu <casouri <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Theodor Thornhill <theo <at> thornhill.no>
To: jostein <at> kjonigsen.net
Cc: 59735 <at> debbugs.gnu.org
Subject: bug#59735: 29.0.60; csharp-ts-mode: imported namespaces are fontified inconsistently
Date: Thu, 01 Dec 2022 09:45:03 +0100
Jostein Kjønigsen <jostein <at> secure.kjonigsen.net> writes:

> When importing namespaces into your code, simple namespace-names are fontified as font-lock-type-name-face, while nested namespace-names are fontified as font-lock-variable-face-name.
>
> Example:
>
>   using System;    // font-lock-type-name-face
>   using System.IO; // font-lock-variable-name-face
>
> To be consistent internally, and with earlier implementations, all
> namespaces should be fontified using font-lock-variable-name-face.

Yeah, I agree.  I believe my plan was to make the last namespace
qualifier fontified with type-face, and the others in
variable-name-face.  It seems that didn't really work though ;)

With that idea in mind the code that fails is the second line, not the
first.

I don't have a strong preference there, so open to suggestions,
absolutely.

How does visual studio or vscode do it?


Theo

BTW, you should add CC's to the X-Debbugs-CC header, not as a normal CC.
That way I won't get CC'd until after the bug is created, and can reply
directly :)

Theo




This bug report was last modified 2 years and 215 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.