Skip to content

Instantly share code, notes, and snippets.

@perlpunk
Created May 23, 2019 15:50
Show Gist options
  • Save perlpunk/6686d1623cb6fc09757932bfbe3a61b5 to your computer and use it in GitHub Desktop.
Save perlpunk/6686d1623cb6fc09757932bfbe3a61b5 to your computer and use it in GitHub Desktop.
wrong indented flow sequence
+STR
+DOC
+MAP
=VAL :nested
+MAP
=VAL :a
+MAP
=VAL :b
+SEQ []
=VAL :flow style sequence
-SEQ
-MAP
-MAP
-MAP
-DOC
-STR
+STR
+DOC
+MAP
=VAL :nested
+MAP
=VAL :a
+MAP
=VAL :b
+SEQ
-SEQ
parsing error near byte offset Pos {posByteOffset = 21, posCharOffset = 21, posLine = 3, posColumn = 8} (Unexpected '
')
nested:
a:
b: [
flow style sequence
]
+STR
+DOC
+MAP
=VAL :nested
+MAP
=VAL :a
+MAP
=VAL :b
+SEQ []
=VAL :flow style sequence
-SEQ
-MAP
-MAP
-MAP
-DOC
-STR
{
"nested": {
"a": {
"b": [
"flow style sequence"
]
}
}
}
+STR
+DOC
+MAP
=VAL :nested
+MAP
=VAL :a
+MAP
=VAL :b
undefined
+STR
+DOC
+MAP
=VAL :nested
+MAP
=VAL :a
+MAP
=VAL :b
+SEQ
=VAL :flow style sequence
-SEQ
-MAP
-MAP
-MAP
-DOC
-STR
+STR
+DOC
+MAP
=VAL :nested
+MAP
=VAL :a
+MAP
=VAL :b
+SEQ
=VAL :flow style sequence
-SEQ
-MAP
-MAP
-MAP
-DOC
-STR
Line : 4
Column : 1
Message : Bad indendation in FLOWSEQ
Where : /lib/perl5/YAML/PP/Parser.pm line 178
YAML : "flow style sequence\n"
at /bin/perl5-pp-event line 19.
+STR
+DOC
+MAP
=VAL :nested
+MAP
=VAL :a
+MAP
=VAL :b
+SEQ
+STR
+DOC
+MAP
=VAL :nested
+MAP
=VAL :a
+MAP
=VAL :b
+SEQ
=VAL :flow style sequence
-SEQ
-MAP
-MAP
-MAP
-DOC
-STR
+STR
+DOC
+MAP
=VAL :nested
+MAP
=VAL :a
+MAP
=VAL :b
+SEQ
=VAL :flow style sequence
-SEQ
-MAP
-MAP
-MAP
-DOC
-STR
{
"nested": {
"a": {
"b": [
"flow style sequence"
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment