--- &test-Y79Y:003
Title: Tabs in various contexts
Tags: [ whitespace ]
invalid_incorrect
+STR
+DOC
+SEQ
+SEQ []
=VAL :foo
=VAL :foo
-SEQ
-SEQ
-DOC
-STR
invalid_incorrect
+STR
+DOC
+SEQ
+SEQ
=VAL :foo
=VAL :foo
-SEQ
-SEQ
-DOC
-STR
invalid_incorrect
+STR
+DOC
+SEQ
+SEQ []
=VAL :foo
=VAL :foo
-SEQ
-SEQ
-DOC
-STR
invalid_incorrect
+STR
+DOC
+SEQ
+SEQ
=VAL :foo
=VAL :foo
-SEQ
-SEQ
-DOC
-STR
invalid_incorrect
[["foo", "foo"]]
invalid_incorrect
[["foo","foo"]]
invalid_incorrect
Line Col Char Byte Token|Content
1 0 0 0 +DOC |
1 0 0 0 +NODE|
1 0 0 0 +SEQ |
1 0 0 0 =SYNX|-
1 1 1 1 =WSPC|.
1 2 2 2 +NODE|
1 2 2 2 +SEQ |
1 2 2 2 =SYNX|[
1 3 3 3 -SEQ |
1 3 3 3 -NODE|
1 3 3 3 =ERR |Unexpected.'\x0a'
1 3 3 3 =REST|\x0a
2 0 4 4 -SEQ |
2 0 4 4 -NODE|
2 0 4 4 -DOC |
2 0 4 4 =ERR |Unexpected.'\x09'
invalid_incorrect
[["foo","foo"]]
invalid_incorrect
[["foo","foo"]]
invalid_incorrect
[
[
"foo",
"foo"
]
]
invalid_incorrect
[
[
'foo',
'foo'
]
]
invalid_incorrect
[
[
"foo",
"foo"
]
]
invalid_incorrect
[
[
'foo',
'foo'
]
]
invalid_incorrect
[
[
"foo",
"foo"
]
]
invalid_incorrect
[
[
'foo',
'foo'
]
]
invalid_incorrect
+STR
+DOC
+SEQ
+SEQ []
=VAL :foo
=VAL :foo
-SEQ
-SEQ
-DOC
-STR
invalid_incorrect
[
[
"foo",
"foo"
]
]
invalid_incorrect
[['foo', 'foo']]
invalid_incorrect
[["foo","foo"]]
invalid_incorrect
+STR
+DOC
+SEQ
+SEQ
=VAL :foo
=VAL :foo
-SEQ
-SEQ
-DOC
-STR
invalid_correct
stdin:2:1: error: tab character may not be used as indentation
foo,
^~~~~~~~
+STR
+DOC
+SEQ
invalid_correct
stdin:2:1: error: tab character may not be used as indentation
foo,
^~~~~~~~
invalid_correct
Parsing error near byte offset Pos {posByteOffset = 3, posCharOffset = 3, posLine = 1, posColumn = 3} (Unexpected '
')
+STR
+DOC
+SEQ
+SEQ []
-SEQ
invalid_correct
hsyaml-parser: user error (Unexpected '
')
invalid_correct
Flow sequence in block collection must be sufficiently indented and end with a ] at line 2, column 2:
foo,
foo
]
^
+STR
+DOC
+SEQ
+SEQ []
-SEQ
-SEQ
-DOC
-STR
invalid_correct
/yaml/bin/js-yaml-json:9
if (doc.errors.length !== 0) throw doc.errors[0]
^
YAMLParseError: Flow sequence in block collection must be sufficiently indented and end with a ] at line 2, column 2:
foo,
foo
]
^
at Composer.onError (/node/node_modules/yaml/dist/compose/composer.js:69:34)
at Object.resolveFlowCollection (/node/node_modules/yaml/dist/compose/resolve-flow-collection.js:183:9)
at resolveCollection (/node/node_modules/yaml/dist/compose/compose-collection.js:16:37)
at Object.composeCollection (/node/node_modules/yaml/dist/compose/compose-collection.js:47:16)
at composeNode (/node/node_modules/yaml/dist/compose/compose-node.js:31:38)
at Object.resolveBlockSeq (/node/node_modules/yaml/dist/compose/resolve-block-seq.js:38:15)
at resolveCollection (/node/node_modules/yaml/dist/compose/compose-collection.js:15:31)
at Object.composeCollection (/node/node_modules/yaml/dist/compose/compose-collection.js:47:16)
at Object.composeNode (/node/node_modules/yaml/dist/compose/compose-node.js:31:38)
at Object.composeDoc (/node/node_modules/yaml/dist/compose/compose-doc.js:34:23) {
code: 'BAD_INDENT',
pos: [ 5, 6 ],
linePos: [ { line: 2, col: 2 }, { line: 2, col: 3 } ]
}
Node.js v20.13.1
invalid_correct
/tmp/NimYAML-0.16.0/yaml/stream.nim(134) nimyaml_event
/tmp/NimYAML-0.16.0/yaml/stream.nim(99) next
/tmp/NimYAML-0.16.0/yaml/parser.nim(160) :anonymous
/tmp/NimYAML-0.16.0/yaml/parser.nim(470) atBlockIndentationProps
/tmp/NimYAML-0.16.0/yaml/stream.nim(106) next
[[reraised from:
/tmp/NimYAML-0.16.0/yaml/stream.nim(134) nimyaml_event
/tmp/NimYAML-0.16.0/yaml/stream.nim(101) next
]]
Error: unhandled exception: Too few indentation spaces (must surpass surrounding block level) [YamlStreamError]
+STR
+DOC
+SEQ
invalid_correct
Line : 2
Column : 1
Message : Bad indendation in FLOWSEQ
Where : /perl5/lib/perl5/YAML/PP/Parser.pm line 199
YAML : "\tfoo,\n"
at /yaml/bin/perl-pp-event line 46.
+STR
+DOC
+SEQ
+SEQ []
invalid_correct
Line : 2
Column : 1
Message : Bad indendation in FLOWSEQ
Where : /perl5/lib/perl5/YAML/PP/Parser.pm line 199
YAML : "\tfoo,\n"
at /perl5/lib/perl5/YAML/PP/Loader.pm line 94.
invalid_correct
Line : 2
Column : 1
Message : Bad indendation in FLOWSEQ
Where : /perl5/lib/perl5/YAML/PP/Parser.pm line 199
YAML : "\tfoo,\n"
at /perl5/lib/perl5/YAML/PP/Loader.pm line 94.
invalid_correct
Parser finished before end of input at /perl5/lib/perl5/YAML/Parser.pm line 4056, <> line 1.
invalid_correct
YAML::Tiny found bad indenting in line ' foo,' at /yaml/bin/perl-tiny-json line 12.
invalid_correct
YAML::Tiny found bad indenting in line ' foo,' at /yaml/bin/perl-tiny-perl line 15.
invalid_correct
YAML Error: Inconsistent indentation level
Code: YAML_PARSE_ERR_INCONSISTENT_INDENTATION
Line: 2
Document: 1
at /perl5/lib/perl5/YAML/Loader.pm line 804.
invalid_correct
YAML Error: Inconsistent indentation level
Code: YAML_PARSE_ERR_INCONSISTENT_INDENTATION
Line: 2
Document: 1
at /perl5/lib/perl5/YAML/Loader.pm line 804.
invalid_correct
Traceback (most recent call last):
File "/yaml/bin/py-pyyaml-event", line 7, in <module>
for event in yaml.parse(sys.stdin.read()):
File "/python/lib/python3.12/site-packages/yaml/__init__.py", line 75, in parse
while loader.check_event():
^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/parser.py", line 98, in check_event
self.current_event = self.state()
^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/parser.py", line 379, in parse_block_sequence_first_entry
return self.parse_block_sequence_entry()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/parser.py", line 384, in parse_block_sequence_entry
if not self.check_token(BlockEntryToken, BlockEndToken):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/scanner.py", line 116, in check_token
self.fetch_more_tokens()
File "/python/lib/python3.12/site-packages/yaml/scanner.py", line 258, in fetch_more_tokens
raise ScannerError("while scanning for the next token", None,
yaml.scanner.ScannerError: while scanning for the next token
found character '\t' that cannot start any token
in "<unicode string>", line 2, column 1:
foo,
^
+STR
+DOC
+SEQ
invalid_correct
Traceback (most recent call last):
File "/yaml/bin/py-pyyaml-json", line 19, in <module>
for doc in yaml.load_all(sys.stdin.read(), Loader=yaml.FullLoader):
File "/python/lib/python3.12/site-packages/yaml/__init__.py", line 130, in load_all
yield loader.get_data()
^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/constructor.py", line 45, in get_data
return self.construct_document(self.get_node())
^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/composer.py", line 27, in get_node
return self.compose_document()
^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/composer.py", line 55, in compose_document
node = self.compose_node(None, None)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/composer.py", line 82, in compose_node
node = self.compose_sequence_node(anchor)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/composer.py", line 110, in compose_sequence_node
while not self.check_event(SequenceEndEvent):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/parser.py", line 98, in check_event
self.current_event = self.state()
^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/parser.py", line 379, in parse_block_sequence_first_entry
return self.parse_block_sequence_entry()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/parser.py", line 384, in parse_block_sequence_entry
if not self.check_token(BlockEntryToken, BlockEndToken):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/scanner.py", line 116, in check_token
self.fetch_more_tokens()
File "/python/lib/python3.12/site-packages/yaml/scanner.py", line 258, in fetch_more_tokens
raise ScannerError("while scanning for the next token", None,
yaml.scanner.ScannerError: while scanning for the next token
found character '\t' that cannot start any token
in "<unicode string>", line 2, column 1:
foo,
^
invalid_correct
Traceback (most recent call last):
File "/yaml/bin/py-pyyaml-py", line 36, in <module>
for doc in yaml.load_all(sys.stdin.read(), Loader=yaml.FullLoader):
File "/python/lib/python3.12/site-packages/yaml/__init__.py", line 130, in load_all
yield loader.get_data()
^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/constructor.py", line 45, in get_data
return self.construct_document(self.get_node())
^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/composer.py", line 27, in get_node
return self.compose_document()
^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/composer.py", line 55, in compose_document
node = self.compose_node(None, None)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/composer.py", line 82, in compose_node
node = self.compose_sequence_node(anchor)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/composer.py", line 110, in compose_sequence_node
while not self.check_event(SequenceEndEvent):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/parser.py", line 98, in check_event
self.current_event = self.state()
^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/parser.py", line 379, in parse_block_sequence_first_entry
return self.parse_block_sequence_entry()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/parser.py", line 384, in parse_block_sequence_entry
if not self.check_token(BlockEntryToken, BlockEndToken):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/scanner.py", line 116, in check_token
self.fetch_more_tokens()
File "/python/lib/python3.12/site-packages/yaml/scanner.py", line 258, in fetch_more_tokens
raise ScannerError("while scanning for the next token", None,
yaml.scanner.ScannerError: while scanning for the next token
found character '\t' that cannot start any token
in "<unicode string>", line 2, column 1:
foo,
^