--- &test-96NN:01
Title: Leading tab content in literals
Tags: [ indent, literal, whitespace ]
+STR
+DOC
+MAP
=VAL :foo
=VAL |\tbar
-MAP
-DOC
-STR
json_diff
parse error: Invalid string: control characters from U+0000 through U+001F must be escaped at line 1, column 14
json_diff
{
"foo": "bar"
}
error
+STR
+DOC
+MAP
=VAL :foo
Parse error: found a tab character where an indentation space is expected
error
yaml: line 2: found a tab character where an indentation space is expected
error
+STR
+DOC
+MAP
=VAL :foo
=VAL |
-MAP
-DOC
Parsing error near byte offset Pos {posByteOffset = 8, posCharOffset = 8, posLine = 2, posColumn = 0} (Unexpected ' ')
error
hsyaml-parser: user error (Unexpected ' ')
error
luajit: 1:1: found a tab character where an indentation space is expected
stack traceback:
[C]: in function 'error'
/usr/local/share/lua/5.1/lyaml/init.lua:306: in function 'error'
/usr/local/share/lua/5.1/lyaml/init.lua:325: in function 'parse'
/usr/local/share/lua/5.1/lyaml/init.lua:443: in function 'load_node'
/usr/local/share/lua/5.1/lyaml/init.lua:378: in function 'load_node'
/usr/local/share/lua/5.1/lyaml/init.lua:497: in function 'load'
/yaml/bin/lua-lyaml-json:6: in main chunk
[C]: at 0x564a60cc7ed0
error
YAML::PP::LibYAML Error: The problem:
found a tab character where an indentation space is expected
was found at , line: 2, column: 2
while scanning a block scalar at line: 1, column: 6
error
YAML::PP::LibYAML Error: The problem:
found a tab character where an indentation space is expected
was found at , line: 2, column: 2
while scanning a block scalar at line: 1, column: 6
error
YAML::XS::Load Error: The problem:
found a tab character where an indentation space is expected
was found at document: 1, line: 2, column: 2
while scanning a block scalar at line: 1, column: 6
error
YAML::XS::Load Error: The problem:
found a tab character where an indentation space is expected
was found at document: 1, line: 2, column: 2
while scanning a block scalar at line: 1, column: 6
error
/ruby/gems/psych/lib/psych.rb:458:in `parse': (<unknown>): found a tab character where an indentation space is expected while scanning a block scalar at line 1 column 6 (Psych::SyntaxError)
from /ruby/gems/psych/lib/psych.rb:458:in `parse_stream'
from /ruby/gems/psych/lib/psych.rb:632:in `load_stream'
from /yaml/bin/ruby-psych-json:6:in `<main>'
error
+STR
+DOC
+MAP
=VAL :foo
Error: ScanError { mark: Marker { index: 9, line: 2, col: 1 }, info: "while scanning a block scalar, found a tab character where an indentation space is expected" }
na
Line Col Char Byte Token|Content
1 0 0 0 +DOC |
1 0 0 0 +NODE|
1 0 0 0 +MAP |
1 0 0 0 +PAIR|
1 0 0 0 +NODE|
1 0 0 0 +VAL |
1 0 0 0 =TEXT|foo
1 3 3 3 -VAL |
1 3 3 3 -NODE|
1 3 3 3 =SYNX|:
1 4 4 4 +NODE|
1 4 4 4 =WSPC|.
1 5 5 5 +VAL |
1 5 5 5 =SYNX||
1 6 6 6 =SYNX|-
1 7 7 7 =EOL |\x0a
2 0 8 8 -VAL |
2 0 8 8 -NODE|
2 0 8 8 -PAIR|
2 0 8 8 -MAP |
2 0 8 8 -NODE|
2 0 8 8 -DOC |
2 0 8 8 =ERR |Unexpected.'.'