--- &test-96NN:00
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
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 0x55b41518ced0
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 =DENT|.
2 1 9 9 =TEXT|\x09bar
2 5 13 13 -VAL |
2 5 13 13 =EOL |\x0a
3 0 14 14 -NODE|
3 0 14 14 -PAIR|
3 0 14 14 -MAP |
3 0 14 14 -NODE|
3 0 14 14 -DOC |