[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#61512: 29.0.60; csharp-ts-mode does not fontify compiler-directives
From: |
Theodor Thornhill |
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@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