GNU bug report logs - #79825
[PATCH] 31.0.50; csharp-ts-mode does not fontify variable-declarations assgined from an await-statement

Previous Next

Package: emacs;

Reported by: Jostein Kjønigsen <jostein <at> secure.kjonigsen.net>

Date: Wed, 12 Nov 2025 17:10:01 UTC

Severity: normal

Tags: patch

To reply to this bug, email your comments to 79825 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#79825; Package emacs. (Wed, 12 Nov 2025 17:10:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jostein Kjønigsen <jostein <at> secure.kjonigsen.net>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 12 Nov 2025 17:10:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jostein Kjønigsen <jostein <at> secure.kjonigsen.net>
To: bug-gnu-emacs <at> gnu.org
Cc: Yuan Fu <casouri <at> gmail.com>
Subject: [PATCH] 31.0.50; csharp-ts-mode does not fontify
 variable-declarations assgined from an await-statement
Date: Wed, 12 Nov 2025 18:08:26 +0100
[Message part 1 (text/plain, inline)]
Hey everyone.

I just discovered that csharp-ts-mode does not correctly fontify the variable-declarations where the variable is assigned from an await statement.

Example:

var myVar = functionCall(); // OK
var myVar2 = await functionCall2(); // not OK

Attached is a patch which fixes this.

—
Kind Regards
Jostein Kjønigsen

[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#79825; Package emacs. (Wed, 12 Nov 2025 17:26:01 GMT) Full text and rfc822 format available.

Message #8 received at 79825 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Jostein Kjønigsen <jostein <at> secure.kjonigsen.net>
Cc: 79825 <at> debbugs.gnu.org, casouri <at> gmail.com
Subject: Re: bug#79825: [PATCH] 31.0.50;
 csharp-ts-mode does not fontify variable-declarations assgined from
 an await-statement
Date: Wed, 12 Nov 2025 19:25:21 +0200
> Cc: Yuan Fu <casouri <at> gmail.com>
> From: Jostein Kjønigsen <jostein <at> secure.kjonigsen.net>
> Date: Wed, 12 Nov 2025 18:08:26 +0100
> 
> I just discovered that csharp-ts-mode does not correctly fontify the variable-declarations where the variable
> is assigned from an await statement.
> 
> Example:
> 
> var myVar = functionCall(); // OK
> var myVar2 = await functionCall2(); // not OK
> 
> Attached is a patch which fixes this.

ENOPATCH




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#79825; Package emacs. (Wed, 12 Nov 2025 17:54:02 GMT) Full text and rfc822 format available.

Message #11 received at 79825 <at> debbugs.gnu.org (full text, mbox):

From: Jostein Kjønigsen <jostein <at> secure.kjonigsen.net>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 79825 <at> debbugs.gnu.org, casouri <at> gmail.com
Subject: Re: bug#79825: [PATCH] 31.0.50; csharp-ts-mode does not fontify
 variable-declarations assgined from an await-statement
Date: Wed, 12 Nov 2025 18:53:05 +0100
[Message part 1 (text/plain, inline)]
> On 12 Nov 2025, at 18:25, Eli Zaretskii <eliz <at> gnu.org> wrote:
> 
>> Cc: Yuan Fu <casouri <at> gmail.com>
>> From: Jostein Kjønigsen <jostein <at> secure.kjonigsen.net>
>> Date: Wed, 12 Nov 2025 18:08:26 +0100
>> 
>> I just discovered that csharp-ts-mode does not correctly fontify the variable-declarations where the variable
>> is assigned from an await statement.
>> 
>> Example:
>> 
>> var myVar = functionCall(); // OK
>> var myVar2 = await functionCall2(); // not OK
>> 
>> Attached is a patch which fixes this.
> 
> ENOPATCH

Weird. I can swear I attached the file.

Trying again!



—
Kind Regards
Jostein Kjønigsen

[Message part 2 (text/html, inline)]
[0001-lisp-progmodes-csharp-mode.el-fontify-variables-assi.patch (application/octet-stream, attachment)]
[Message part 4 (text/html, inline)]

This bug report was last modified 1 day ago.

Previous Next


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