From: "Robert Thorpe" <rthorpe@realworldtech.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Need help with some changes in c-mode
Date: 20 Feb 2007 07:50:28 -0800 [thread overview]
Message-ID: <1171986628.173236.310580@m58g2000cwm.googlegroups.com> (raw)
In-Reply-To: <1171944204.855195.277270@k78g2000cwa.googlegroups.com>
On Feb 20, 4:03 am, nemshi...@gmail.com wrote:
> On Feb 20, 1:34 am, Glenn Morris <rgm+n...@stanford.edu> wrote:> nemshi...@gmail.com wrote:
> > From the information presented, it sounds like you might be better off
> > basing your mode on sh-mode. Have at look at how sh-script.el handles
> > here documents (which is what your first construct is, save for an
> > extra "<"). Look for "heredocs" in the code.
>
> Actually not. This is for php-mode (I know, I know... ) I'm trying to
> create more correct mode than the existing one.
>
> Think php is more close to c-mode by semantic than to shell. Generally
> there's everything except this two problems.
>
> I've a glue how solve the first issue with the strings, but how solve
> the problem with comments?
Probably the best way would be to derive a derived mode from c-mode
for php. You can then add to that mode some of the code from sh-
script mode to handle heredocs. Handling heredocs isn't that simple
unfortunately.
next prev parent reply other threads:[~2007-02-20 15:50 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-17 6:34 Need help with some changes in c-mode nemshilov
2007-02-19 19:34 ` Glenn Morris
2007-02-20 4:03 ` nemshilov
2007-02-20 15:50 ` Robert Thorpe [this message]
2007-02-21 3:19 ` MadRabbit
2007-02-21 10:25 ` Robert Thorpe
2007-02-21 13:33 ` MadRabbit
2007-02-21 17:34 ` Robert Thorpe
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1171986628.173236.310580@m58g2000cwm.googlegroups.com \
--to=rthorpe@realworldtech.com \
--cc=help-gnu-emacs@gnu.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).