--- &test-2LFX
Title: Spec Example 6.13. Reserved Directives [1.3]
Tags: [ 1.3-mod, directive, double, header, spec ]
%FOO bar baz # Should be ignored
# with a warning.
---
"foo"
+STR
+DOC ---
=VAL "foo
-DOC
-STR
json_diff
"%FOO bar baz"
"foo"
error
+STR
Parse error: found unknown directive name
error
yaml: found unknown directive name
error
luajit: 1:1: found unknown directive name
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:496: in function 'load'
/yaml/bin/lua-lyaml-json:6: in main chunk
[C]: at 0x55d99fe8aed0
error
YAML::PP::LibYAML Error: The problem:
found unknown directive name
was found at , line: 1, column: 5
while scanning a directive at line: 1, column: 1
error
YAML::PP::LibYAML Error: The problem:
found unknown directive name
was found at , line: 1, column: 5
while scanning a directive at line: 1, column: 1
error
YAML::Tiny failed to classify line '%FOO bar baz # Should be ignored' at /yaml/bin/perl-tiny-json line 12.
error
YAML::Tiny failed to classify line '%FOO bar baz # Should be ignored' at /yaml/bin/perl-tiny-perl line 15.
error
YAML::XS::Load Error: The problem:
found unknown directive name
was found at document: 1, line: 1, column: 5
while scanning a directive at line: 1, column: 1
error
YAML::XS::Load Error: The problem:
found unknown directive name
was found at document: 1, line: 1, column: 5
while scanning a directive at line: 1, column: 1
error
YAML Error: Expected separator '---'
Code: YAML_PARSE_ERR_NO_SEPARATOR
Line: 1
Document: 2
at /perl5/lib/perl5/YAML/Loader.pm line 88.
error
YAML Error: Expected separator '---'
Code: YAML_PARSE_ERR_NO_SEPARATOR
Line: 1
Document: 2
at /perl5/lib/perl5/YAML/Loader.pm line 88.
error
/ruby/gems/psych/lib/psych.rb:458:in `parse': (<unknown>): found unknown directive name while scanning a directive at line 1 column 1 (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>'
na
Line Col Char Byte Token|Content
1 0 0 0 +DOC |
1 0 0 0 +DIR |
1 0 0 0 =SYNX|%
1 1 1 1 =META|FOO
1 4 4 4 =WSPC|..
1 6 6 6 =META|bar
1 9 9 9 =WSPC|.
1 10 10 10 =META|baz
1 13 13 13 =WSPC|.
1 14 14 14 =META|#
1 15 15 15 =WSPC|.
1 16 16 16 =META|Should
1 22 22 22 =WSPC|.
1 23 23 23 =META|be
1 25 25 25 =WSPC|.
1 26 26 26 =META|ignored
1 33 33 33 -DIR |
1 33 33 33 =EOL |\x0a
2 0 34 34 =WSPC|..............
2 14 48 48 +COMM|
2 14 48 48 =SYNX|#
2 15 49 49 =META|.with.a.warning.
2 31 65 65 -COMM|
2 31 65 65 =EOL |\x0a
3 0 66 66 =HEAD|---
3 3 69 69 =EOL |\x0a
4 0 70 70 +NODE|
4 0 70 70 +VAL |
4 0 70 70 =SYNX|"
4 1 71 71 =TEXT|foo
4 4 74 74 =SYNX|"
4 5 75 75 -VAL |
4 5 75 75 -NODE|
4 5 75 75 =EOL |\x0a
5 0 76 76 -DOC |
na
'foo'
Found reserved directive '%FOO bar baz # Should be ignored' at /perl5/lib/perl5/YAML/PP/Lexer.pm line 845, <> line 1.