[Top][All Lists]

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

Re: CC Mode 5.27 (); Adaptation of c-mode for awk-mode

From: Harry Putnam
Subject: Re: CC Mode 5.27 (); Adaptation of c-mode for awk-mode
Date: 22 Nov 2000 05:43:47 -0800
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.5

address@hidden (Martin Stjernholm) writes:

> Miles Bader <address@hidden> wrote:
> > `awk-mode' currently uses c-mode to do indentation, which only really
> > works well for awk programs that terminate all statements using
> > semicolons.  Unfortunately, this means it doesn't work well for a
> > majority of awk programs.
> > 
> > How hard would it be to parameterize c-mode so that it could regard
> > newline as being a statement terminator, just like semicolon?  This
> > would allow awk-mode to behave much more nicely.
> Spontaneously I'd say quite difficult, but it depends on how thorough
> you'd want it to be. As a start it might be enough just to modify
> c-beginning-of-statement-1, which is used most of the time to back up
> a statement during syntax recognition.
> Otoh, if awk-mode should work really well it might be better off not
> to be based on CC Mode. The syntaxes doesn't really have all that much
> in common, so the parts of CC Mode that are useful might just as well
> be ripped out or reimplemented.

Anyone know if any work is being done to reimplement an awk mode?

Being a novice awk programmer, I looked to emacs to help me with
indentation etc, but find it more confusing than helpfull and prefer
not to have the semi-colons in my code.

reply via email to

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