--- &test-QB6E
Title: Wrong indented multiline quoted scalar
Tags: [ double, error, indent ]
+STR
+DOC ---
+MAP
=VAL :quoted
invalid_incorrect
+STR
+DOC ---
+MAP
=VAL :quoted
=VAL "a b c
-MAP
-DOC
-STR
invalid_incorrect
+STR
+DOC ---
+MAP
=VAL :quoted
=VAL 'a b c
-MAP
-DOC
-STR
invalid_incorrect
+STR
+DOC
+MAP
=VAL :quoted
=VAL :a b c
-MAP
-DOC
-STR
invalid_incorrect
{"quoted":"a b c"}
invalid_incorrect
Line Col Char Byte Token|Content
1 0 0 0 +DOC |
1 0 0 0 =HEAD|---
1 3 3 3 +NODE|
1 3 3 3 =EOL |\x0a
2 0 4 4 +MAP |
2 0 4 4 +PAIR|
2 0 4 4 +NODE|
2 0 4 4 +VAL |
2 0 4 4 =TEXT|quoted
2 6 10 10 -VAL |
2 6 10 10 -NODE|
2 6 10 10 =SYNX|:
2 7 11 11 =WSPC|.
2 8 12 12 +NODE|
2 8 12 12 +VAL |
2 8 12 12 =SYNX|"
2 9 13 13 =TEXT|a
2 10 14 14 -VAL |
2 10 14 14 -NODE|
2 10 14 14 =ERR |Unexpected.'\x0a'
2 10 14 14 =REST|\x0a
3 0 15 15 -PAIR|
3 0 15 15 -MAP |
3 0 15 15 -NODE|
3 0 15 15 -DOC |
3 0 15 15 =ERR |Unexpected.'b'
invalid_incorrect
{"quoted":"a b c"}
invalid_incorrect
{"quoted":"a b c"}
invalid_incorrect
+STR
+DOC ---
+MAP
=VAL :quoted
=VAL "a b c
-MAP
-DOC
-STR
invalid_incorrect
{
"quoted" : "a b c"
}
invalid_incorrect
{
'quoted' => 'a b c'
}
invalid_incorrect
{
"quoted" : "a b c"
}
invalid_incorrect
{
'quoted' => 'a b c'
}
invalid_incorrect
{
"quoted" : "a b c"
}
invalid_incorrect
{
'quoted' => 'a b c'
}
invalid_incorrect
+STR
+DOC ---
+MAP
=VAL :quoted
=VAL "a b c
-MAP
-DOC
-STR
invalid_incorrect
{
"quoted": "a b c"
}
invalid_incorrect
{'quoted': 'a b c'}
invalid_incorrect
+STR
+DOC ---
+MAP
=VAL :quoted
=VAL "a b c
-MAP
-DOC
-STR
invalid_incorrect
{
"quoted": "a b c"
}
invalid_incorrect
{'quoted': 'a b c'}
invalid_incorrect
{"quoted":"a b c"}
invalid_incorrect
+STR
+DOC
+MAP
=VAL :quoted
=VAL "a b c
-MAP
-DOC
-STR
invalid_correct
stdin:2:9: error: wrongly indented double-quoted scalar
quoted: "a
^~
b
~
+STR
+DOC ---
+MAP
=VAL :quoted
invalid_correct
stdin:2:9: error: wrongly indented double-quoted scalar
quoted: "a
^~
b
~
invalid_correct
Unhandled exception. YamlDotNet.Core.SyntaxErrorException: (Line: 2, Col: 9, Idx: 12) - (Line: 3, Col: 1, Idx: 15): While scanning a multi-line double-quoted scalar, found wrong indentation.
at YamlDotNet.Core.Scanner.ScanFlowScalar(Boolean isSingleQuoted)
at YamlDotNet.Core.Scanner.FetchFlowScalar(Boolean isSingleQuoted)
at YamlDotNet.Core.Scanner.FetchNextToken()
at YamlDotNet.Core.Scanner.FetchMoreTokens()
at YamlDotNet.Core.Scanner.MoveNextWithoutConsuming()
at YamlDotNet.Core.Parser.GetCurrentToken()
at YamlDotNet.Core.Parser.ParseBlockMappingValue()
at YamlDotNet.Core.Parser.StateMachine()
at YamlDotNet.Core.Parser.MoveNext()
at YamlDotNet.RepresentationModel.LibYamlEventStream.WriteTo(TextWriter textWriter)
at Program.Main(String[] commandLineArguments)
Aborted (core dumped)
+STR
+DOC ---
+MAP
=VAL :quoted
invalid_correct
Unhandled exception. YamlDotNet.Core.SyntaxErrorException: (Line: 2, Col: 9, Idx: 12) - (Line: 3, Col: 1, Idx: 15): While scanning a multi-line double-quoted scalar, found wrong indentation.
at YamlDotNet.Core.Scanner.ScanFlowScalar(Boolean isSingleQuoted)
at YamlDotNet.Core.Scanner.FetchFlowScalar(Boolean isSingleQuoted)
at YamlDotNet.Core.Scanner.FetchNextToken()
at YamlDotNet.Core.Scanner.FetchMoreTokens()
at YamlDotNet.Core.Scanner.MoveNextWithoutConsuming()
at YamlDotNet.Core.Parser.GetCurrentToken()
at YamlDotNet.Core.Parser.ParseBlockMappingValue()
at YamlDotNet.Core.Parser.StateMachine()
at YamlDotNet.Core.Parser.MoveNext()
at YamlDotNet.Core.ParserExtensions.TryConsume[T](IParser parser, T& event)
at YamlDotNet.Serialization.NodeDeserializers.ScalarNodeDeserializer.YamlDotNet.Serialization.INodeDeserializer.Deserialize(IParser parser, Type expectedType, Func`3 nestedObjectDeserializer, Object& value)
at YamlDotNet.Serialization.ValueDeserializers.NodeValueDeserializer.DeserializeValue(IParser parser, Type expectedType, SerializerState state, IValueDeserializer nestedObjectDeserializer)
at YamlDotNet.Serialization.ValueDeserializers.AliasValueDeserializer.DeserializeValue(IParser parser, Type expectedType, SerializerState state, IValueDeserializer nestedObjectDeserializer)
at YamlDotNet.Serialization.ValueDeserializers.NodeValueDeserializer.<>c__DisplayClass3_0.<DeserializeValue>b__0(IParser r, Type t)
at YamlDotNet.Serialization.NodeDeserializers.DictionaryNodeDeserializer.DeserializeHelper(Type tKey, Type tValue, IParser parser, Func`3 nestedObjectDeserializer, IDictionary result)
at YamlDotNet.Serialization.NodeDeserializers.DictionaryNodeDeserializer.YamlDotNet.Serialization.INodeDeserializer.Deserialize(IParser parser, Type expectedType, Func`3 nestedObjectDeserializer, Object& value)
at YamlDotNet.Serialization.ValueDeserializers.NodeValueDeserializer.DeserializeValue(IParser parser, Type expectedType, SerializerState state, IValueDeserializer nestedObjectDeserializer)
at YamlDotNet.Serialization.ValueDeserializers.AliasValueDeserializer.DeserializeValue(IParser parser, Type expectedType, SerializerState state, IValueDeserializer nestedObjectDeserializer)
at YamlDotNet.Serialization.Deserializer.Deserialize(IParser parser, Type type)
at YamlDotNet.Serialization.Deserializer.Deserialize(TextReader input, Type type)
at YamlDotNet.Serialization.Deserializer.Deserialize(TextReader input)
at Program.Main(String[] commandLineArguments)
Aborted (core dumped)
invalid_correct
Parsing error near byte offset Pos {posByteOffset = 14, posCharOffset = 14, posLine = 2, posColumn = 10} (Unexpected '
')
+STR
+DOC ---
+MAP
=VAL :quoted
=VAL "a
invalid_correct
hsyaml-parser: user error (Unexpected '
')
invalid_correct
Missing closing "quote at line 2, column 11:
quoted: "a
^
+STR
+DOC ---
+MAP
=VAL :quoted
=VAL "
invalid_correct
/yaml/bin/js-yaml-json:9
if (doc.errors.length !== 0) throw doc.errors[0]
^
YAMLParseError: Missing closing "quote at line 2, column 11:
quoted: "a
^
at Composer.onError (/node/node_modules/yaml/dist/compose/composer.js:69:34)
at _onError (/node/node_modules/yaml/dist/compose/resolve-flow-scalar.js:10:42)
at doubleQuotedValue (/node/node_modules/yaml/dist/compose/resolve-flow-scalar.js:171:9)
at Object.resolveFlowScalar (/node/node_modules/yaml/dist/compose/resolve-flow-scalar.js:22:21)
at Object.composeScalar (/node/node_modules/yaml/dist/compose/compose-scalar.js:11:29)
at composeNode (/node/node_modules/yaml/dist/compose/compose-node.js:24:34)
at Object.resolveBlockMap (/node/node_modules/yaml/dist/compose/resolve-block-map.js:83:19)
at resolveCollection (/node/node_modules/yaml/dist/compose/compose-collection.js:13:27)
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) {
code: 'MISSING_CHAR',
pos: [ 14, 15 ],
linePos: [ { line: 2, col: 11 }, { line: 3, col: 1 } ]
}
Node.js v20.13.1
invalid_correct
Line : 3
Column : 1
Message : Wrong indendation or missing closing quote <">
Where : /perl5/lib/perl5/YAML/PP/Lexer.pm line 671
YAML : "b"
at /yaml/bin/perl-pp-event line 46.
+STR
+DOC ---
+MAP
=VAL :quoted
invalid_correct
Line : 3
Column : 1
Message : Wrong indendation or missing closing quote <">
Where : /perl5/lib/perl5/YAML/PP/Lexer.pm line 671
YAML : "b"
at /perl5/lib/perl5/YAML/PP/Loader.pm line 94.
invalid_correct
Line : 3
Column : 1
Message : Wrong indendation or missing closing quote <">
Where : /perl5/lib/perl5/YAML/PP/Lexer.pm line 671
YAML : "b"
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 does not support a feature in line '"a' at /yaml/bin/perl-tiny-json line 12.
invalid_correct
YAML::Tiny does not support a feature in line '"a' at /yaml/bin/perl-tiny-perl line 15.
invalid_correct
YAML Error: Can't parse double quoted string
Code: YAML_PARSE_ERR_BAD_DOUBLE
Line: 3
Document: 1
at /perl5/lib/perl5/YAML/Loader.pm line 574.
invalid_correct
YAML Error: Can't parse double quoted string
Code: YAML_PARSE_ERR_BAD_DOUBLE
Line: 3
Document: 1
at /perl5/lib/perl5/YAML/Loader.pm line 574.