From: Oren Ben-K. <or...@be...> - 2004-11-12 14:48:51
|
On Friday 12 November 2004 14:55, trans. (T. Onoma) wrote: > | In contrast, we can't forbid '-' from being a leading character > | because of negative numbers ("foo: -123"). So, the '---' can't > | start a plain scalar only if its unindented: > > What's wrong with quoting it? Nothing. It is just that there's a rule saying you _must_ quote it - only when its unindented. Its a wart. Besides, if we do that, what's the point of forbidding unindented top-level block scalars? Its just an ineffective half-measure. As long as we have a "forbidedn line" rule, what's wrong with applying it to all scalar styles? > | I'd like to avoid this special case if possible. > > Of all exceptions I can think of, that's about the most obvious. Fine. The way I see it, we either: - Keep things as they are (with unindented block scalars) - We pick a start/end line pair that doesn't conflict with plain scalars ('>>>'/'|||', '|---'/'|...', or whatever), require block scalars to be indented, and get rid of the "forbidden line" rule altogether. I don't think there's anything new to add here, so I'll shift the burden to Clark (sorry for doing this again :-) So, Clark, which way should it be? Have fun, Oren Ben-Kiki |