bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#63141: Incorrect indentation in csharp-mode


From: Theodor Thornhill
Subject: bug#63141: Incorrect indentation in csharp-mode
Date: Fri, 28 Apr 2023 12:00:48 +0200

Theodor Thornhill <theo@thornhill.no> writes:

> Eli Zaretskii <eliz@gnu.org> writes:
>
>>> From: Jen-Chieh Shen <jcs090218@gmail.com>
>>> Date: Fri, 28 Apr 2023 00:25:16 -0700
>>> 
>>> It seems like there is an indentation error with the following C# code:
>>> 
>>> ```csharp
>>> public class Foo {
>>>     [Header("")]
>>> 
>>>         [Tooltip("")]
>>>         [SerializeField]
>>>         private Block mBlockUp = null;
>>> }
>>> ```
>>> 
>>> expected behavior:
>>> 
>>> ```csharp
>>> public class Foo {
>>>     [Header("")]
>>> 
>>>     [Tooltip("")]
>>>     [SerializeField]
>>>     private Block mBlockUp = null;
>>> }
>>> ```
>>> 
>>> I've tested this bug with emacs -q, and the bug persists.
>>
>> Theo, Jostein: could you please take a look?  csharp-ts-mode behaves
>> correctly with this code snippet, FWIW.  But csharp-mode doesn't.
>
> Yep, I'll look at it immediately!
>
> Thanks for the heads up :-)
>
> Theo

I have a fix now. Is this for emacs-29 or master?

Theo





reply via email to

[Prev in Thread] Current Thread [Next in Thread]