Open
Description
Describe the bug
I would think this is quite some oversight in the YAML spec
what are your thoughts on it?
To Reproduce
abc:
| #this should be an error
block scalar header requires +1 indentation
---
def: |
this should not be an error
block scalar content does not require +1 indentation
---
ghi: |
the first trailing comment is not allowed to use tabs as indentation
#this should be an error
Expected behaviour
-
s-l+block-scalar requires that
|
must have +1 indentation from the parent node.
I would think this is valid -
c-l+literal doesn't add +1 onto the l-literal-content indentation
allowing the content to have 0 indentation inside a block collection
(and -1 indentation at root level)
I would think this shouldn't be allowed -
l-chomped-empty doesn't actually allow tabs before the first trailing comment
I guess it kinda makes sense
Versions:
- Environment: VSCode 1.90
yaml
:2.4.3