emacs-devel
[Top][All Lists]
Advanced

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

Re: asking for advice for changing the cfengine.el progmode to support C


From: Stefan Monnier
Subject: Re: asking for advice for changing the cfengine.el progmode to support CFEngine 3.x
Date: Fri, 17 Jun 2011 18:02:32 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> 1) (body|bundle).+ sets the indentation to 0

I'd recommend you try the new SMIE thingy (me? biased?).
The syntax you show doesn't seem like a perfect fit, but neither does it
seem obviously difficult to accomodate.

Grep for smie-setup to see some example uses (2 uses in trunk right
now.  There is another one in an earlier version of prolog.el, plus one
in ProofGeneral's coq.el, and I have experimental ones for sh-script,
SML, and Pascal, if you're interested).

There is also documentation in the Elisp manual.


        Stefan



reply via email to

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