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

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

Re: Need help with some changes in c-mode


From: Robert Thorpe
Subject: Re: Need help with some changes in c-mode
Date: 20 Feb 2007 07:50:28 -0800
User-agent: G2/1.0

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.




reply via email to

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