From: dino chiesa <dpchiesa@hotmail.com>
To: Alan MacKenzie <acm@muc.de>
Cc: 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 13:03:12 -0800 [thread overview]
Message-ID: <COL124-W415CC82570195C516472C7CE790@phx.gbl> (raw)
In-Reply-To: <20091230210100.GB2247@muc.de>
Hello again Alan, and thanks for having a look at this.
>
> I've had a look at this. The two hooks you want are
> c-get-state-before-change-function and c-before-font-lock-function, both
> of which are c-lang-defconsts. In the function you put in the first
> hook, you should see whether or not you're about to disrupt the status of
> one or more @"......\" constructs. There'll be some cunning special
> cases to check here. The function on the second hook will actually add
> the text-property to the pertinent \, or possibly remove it.
>
Ok, I understand all that. I started working through the special cases and yes, they are cunning. So far they are outsmarting me.
I also understand the c-before-font-lock-function and adding or removing text properties. That should be easy once the state is understood.
Question -
Will adding and removing text properties allow parse-partial-sexp, c-in-literal, and their friends to work "correctly"? Right now c-in-literal gets confused by doubled double-quotes. Will these problems just go away when I get the text properties right?
I haven't fully understood how text properties affect the rest of the cc engine.
Thanks again.
-Dino
_________________________________________________________________
Hotmail: Trusted email with powerful SPAM protection.
http://clk.atdmt.com/GBL/go/177141665/direct/01/
next prev parent reply other threads:[~2009-12-30 21:03 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 [this message]
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
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-W415CC82570195C516472C7CE790@phx.gbl \
--to=dpchiesa@hotmail.com \
--cc=acm@muc.de \
--cc=emacs-devel@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.