GNU bug report logs - #61512
29.0.60; csharp-ts-mode does not fontify compiler-directives

Previous Next

Package: emacs;

Reported by: jostein <at> kjonigsen.net

Date: Tue, 14 Feb 2023 19:11:02 UTC

Severity: normal

Tags: patch

Found in version 29.0.60

Fixed in version 29.1

Done: Theodor Thornhill <theo <at> thornhill.no>

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 Kjønigsen <jostein <at> secure.kjonigsen.net>
Cc: 61512 <at> debbugs.gnu.org, jostein <at> kjonigsen.net
Subject: bug#61512: 29.0.60; csharp-ts-mode does not fontify compiler-directives
Date: Tue, 14 Feb 2023 20:47:44 +0100
Jostein Kjønigsen <jostein <at> secure.kjonigsen.net> writes:

> Consider the following C# code:
>
> #if DEBUG
> #define GNU
> #nullable enable
> #pragma warning disable TS1234
> #elif GNU
> #else
> #endif
> #region
> #region FOO
> #endregion BAR
> #endregion
>
> Almost none of these will get fontified, and if they do, it's only accidentally,
> and then as keywords, not as compiler-preprocessor statements.
>
> Attached is a patch which fixes this.
>

Thanks! Applied and pushed :-)

Theo




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

Previous Next


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