You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Modifiers may be combined in any order.indented and chomped: |2- This has no newline.also written as: |-2 This has no newline.both are equal to: " This has no newline."
The YAML spec says that in block scalars, both indicators can appear in any order.
This is the case since YAML 1.0: https://yaml.org/spec/1.0/index.html#id2566934
Also on latest YAML 1.2.2: https://yaml.org/spec/1.2.2/#rule-c-b-block-header
But the grammar only allows the number before the chomping indicator:
https://github.com/textmate/yaml.tmbundle/blob/master/Syntaxes/YAML.tmLanguage#L217
(?:(\|)|(>))([1-9])?([-+])?(.*\n?)
Example:
The text was updated successfully, but these errors were encountered: