[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: smie-next-sexp vs associative operators
From: |
Stefan Monnier |
Subject: |
Re: smie-next-sexp vs associative operators |
Date: |
Sun, 14 Oct 2012 11:54:32 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) |
> I'm indenting "accept LILLY". It should be indented relative to
> "select".
That's odd. I'd expect it to be indented relative to "or".
To put it more strongly: you should really try to indent relative to
"or" and if you bump into trouble while doing that, then come back here
for help ;-)
> However, this stops with point on "accept SILLY", not accept.
^^^^^^
I presume you meant "select".
> But this is exactly like the "elsif" case the comments are talking
> about, so I think the code is broken.
The comment is imprecise, it's meant for "if ... elsif ... end" where
the BNF said ("if" ... "elsif" ... "end") rather than ("if"
... list-of-elseif ... "end") and then list-of-elseif defined as
(list-of-elseif "elsif" list-of-elseif).
I should fix it, thank you for pointing it out.
I.e. this rule is to avoid stopping at "elsif" when scanning from "if" to
"end" or from "end" to "if". It will still stop when scanning from an
"elsif" and bumping into another "elsif".
Stefan
- smie-next-sexp vs associative operators, Stephen Leake, 2012/10/14
- Re: smie-next-sexp vs associative operators,
Stefan Monnier <=
- Re: smie-next-sexp vs associative operators, Stephen Leake, 2012/10/14
- Re: smie-next-sexp vs associative operators, Stephen Leake, 2012/10/14
- Re: smie-next-sexp vs associative operators, Stefan Monnier, 2012/10/14
- Re: smie-next-sexp vs associative operators, Stephen Leake, 2012/10/15
- Re: smie-next-sexp vs associative operators, Stephen Leake, 2012/10/20
- Re: smie-next-sexp vs associative operators, Stephen Leake, 2012/10/21
- Re: smie-next-sexp vs associative operators, Stefan Monnier, 2012/10/23
- Re: smie-next-sexp vs associative operators, Stephen Leake, 2012/10/23
- Re: smie-next-sexp vs associative operators, Stefan Monnier, 2012/10/24
- Re: smie-next-sexp vs associative operators, Stephen Leake, 2012/10/24