From: Oren Ben-K. <or...@be...> - 2003-02-23 22:41:25
|
Brian Ingerson wrote: > I'm not really comfortable with the way we are defining > sequence indentation. (the dash counts as indentation) For > starters, this: > > --- > foo: > - one > - > two: three > ... > > is not valid, when it most obviously should be. I say > obvious, as in the general layman, not obvious as in those > who made up the rules. :-) The problem is with the incorrect (too general) wording. It restricted to the *-in-seq case only. It is NOT true otherwise. > Basically it boils down to: "Making the dash part of the > indentation was a quick and dirty way to explain the > behaviour of putting sequences directly below the map keys." Right. > What does this mean: > > --- > - |2 > tic > tac > toe > ... > > One leading space per line or two? Again I'm not asking for > clarification, but rather, what *should* it mean. 2 leading spaces. This is both a clarification and what it should mean :-) > If I tell my emitter to use 2-column indenting, do I get: Well, that really depends how you write it, but I expect the answer to be: > --- > foo: > - bar > --- > Oren, is this possible for the productions? Well, here's the thing - it is already there :-) The only problem is the incorrect wording, which should be fixed. Nice catch! Have fun, Oren Ben-Kiki |