[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: first-class support for csharp in cc-mode.el
From: |
dino chiesa |
Subject: |
RE: first-class support for csharp in cc-mode.el |
Date: |
Wed, 30 Dec 2009 19:18:47 -0800 |
C# has #region/#endregion, #if/#else/#endif, #define/#undef, and #pragma.
Using the csharp-mode.el v0.7.0, indenting for all of those was broken.
Using the updated csharp-mode.el 0.7.1, indenting of those things works just
fine. And, you have your choice to align #if/#else/#endif and
#region/#endregion with either the 0'th column or to indent it to the current
code scope. #pragma and #define/#undef always go to the 0'th column.
The mode is pretty good now. There were some other problems that I clean up
too. The one big remaining sticky point is verbatim literal strings, which is
kind of tricky.
-Dino
----------------------------------------
> From: address@hidden
> Date: Thu, 31 Dec 2009 04:08:21 +0100
> Subject: Re: first-class support for csharp in cc-mode.el
> To: address@hidden
> CC: address@hidden; address@hidden; address@hidden; address@hidden
>
> 2009/12/31 Miles Bader :
>> Incidentally the thing about C# which annoyed me (using java-mode to try
>> and indent C# code) were all the "annotation" things (which start with
>> "#"), which I _gather_ are supposed to be at the left margin, but
>> generally cause following indentation to be all messed up.
>>
>> -Miles
>>
>> --
>> Liberty, n. One of imagination's most precious possessions.
>>
>>
>>
>
> Actually, Visual Studio 2008 indents #region and #endregion to the
> same level as the code, whereas I think other "preprocessor"
> instructions are at the left margin. (But I haven't seen any such
> things in C#, ever.)
>
> --
> Deniz Dogan
_________________________________________________________________
Hotmail: Free, trusted and rich email service.
http://clk.atdmt.com/GBL/go/171222984/direct/01/
- RE: first-class support for csharp in cc-mode.el, (continued)
- RE: first-class support for csharp in cc-mode.el, dino chiesa, 2009/12/30
- Re: first-class support for csharp in cc-mode.el, Alan Mackenzie, 2009/12/30
- Re: first-class support for csharp in cc-mode.el, Stefan Monnier, 2009/12/30
- RE: first-class support for csharp in cc-mode.el, dino chiesa, 2009/12/30
- Re: first-class support for csharp in cc-mode.el, Stefan Monnier, 2009/12/30
- Re: first-class support for csharp in cc-mode.el, Alan Mackenzie, 2009/12/30
- RE: first-class support for csharp in cc-mode.el, dino chiesa, 2009/12/30
- Re: first-class support for csharp in cc-mode.el, Miles Bader, 2009/12/30
- Re: first-class support for csharp in cc-mode.el, Jason Rumney, 2009/12/30
- Re: first-class support for csharp in cc-mode.el, Deniz Dogan, 2009/12/30
- RE: first-class support for csharp in cc-mode.el,
dino chiesa <=
- RE: first-class support for csharp in cc-mode.el, dino chiesa, 2009/12/30
- Re: first-class support for csharp in cc-mode.el, Vagn Johansen, 2009/12/31
- Re: first-class support for csharp in cc-mode.el, Alan Mackenzie, 2009/12/30