all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: dino chiesa <dpchiesa@hotmail.com>
To: <deniz.a.m.dogan@gmail.com>, Miles Bader <miles@gnu.org>
Cc: Alan MacKenzie <acm@muc.de>,
	Stefan Monnier <monnier@iro.umontreal.ca>,
	emacs-devel@gnu.org
Subject: RE: first-class support for csharp in cc-mode.el
Date: Wed, 30 Dec 2009 19:18:47 -0800	[thread overview]
Message-ID: <COL124-W65108DA2EE0459397EE7E4CE780@phx.gbl> (raw)
In-Reply-To: <7b501d5c0912301908pa21e057p213645c79dbd7675@mail.gmail.com>


 
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: deniz.a.m.dogan@gmail.com
> Date: Thu, 31 Dec 2009 04:08:21 +0100
> Subject: Re: first-class support for csharp in cc-mode.el
> To: miles@gnu.org
> CC: dpchiesa@hotmail.com; acm@muc.de; monnier@iro.umontreal.ca; emacs-devel@gnu.org
>
> 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/



  reply	other threads:[~2009-12-31  3:18 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-29  1:51 cc-mode help - how to support literal strings in C# syntax? dino chiesa
2009-12-29 10:43 ` Andreas Roehler
2009-12-30  4:40   ` dino chiesa
2010-01-01 11:43     ` Andreas Roehler
2010-01-01 16:04     ` Andreas Roehler
2009-12-30  5:01   ` first-class support for csharp in cc-mode.el dino chiesa
2009-12-30  6:17     ` Miles Bader
2009-12-30  7:18       ` dino chiesa
2009-12-30 11:09         ` Miles Bader
2009-12-30 15:00           ` dino chiesa
2009-12-30 15:19     ` Alan Mackenzie
2009-12-30 15:39       ` Stefan Monnier
2009-12-30 16:29         ` dino chiesa
2009-12-30 16:57           ` Stefan Monnier
2009-12-30 21:01           ` Alan Mackenzie
2009-12-30 21:03             ` dino chiesa
2009-12-31  2:44               ` Miles Bader
2009-12-31  2:58                 ` Jason Rumney
2009-12-31  3:08                 ` Deniz Dogan
2009-12-31  3:18                   ` dino chiesa [this message]
2009-12-31  3:13                 ` dino chiesa
2009-12-31 11:43           ` Vagn Johansen
2009-12-30 20:19         ` Alan Mackenzie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=COL124-W65108DA2EE0459397EE7E4CE780@phx.gbl \
    --to=dpchiesa@hotmail.com \
    --cc=acm@muc.de \
    --cc=deniz.a.m.dogan@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=miles@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.