yaml-grammar icon indicating copy to clipboard operation
yaml-grammar copied to clipboard

Description for rule prefixes mentions, but does not define, `n`

Open aSemy opened this issue 1 year ago • 0 comments

The description for some of the rule prefixes mention an n variable.

https://github.com/yaml/yaml-grammar/blob/15047828ace28d09594d3553b90b165fef60634b/yaml-spec-1.2.yaml#L78-L82

However, it is not clear what n is.

Is n supposed to be the current indentation level? So the rule could be read as "where indentation is greater than the current indentation level"? In which case, isn't this always false?

It would be helpful if n was explicitly defined, with an example (or a link to an example).

aSemy avatar Apr 13 '24 11:04 aSemy