--- &test-CVW2
Title: Invalid comment after comma
Tags: [ comment, error, flow, sequence ]
+STR
+DOC ---
+SEQ []
=VAL :a
=VAL :b
=VAL :c
invalid_incorrect
+STR
+DOC ---
+SEQ []
=VAL :a
=VAL :b
=VAL :c
-SEQ
-DOC
-STR
invalid_incorrect
+STR
+DOC ---
+SEQ
=VAL :a
=VAL :b
=VAL :c
-SEQ
-DOC
-STR
invalid_incorrect
+STR
+DOC
+SEQ []
=VAL :a
=VAL :b
=VAL :c
-SEQ
-DOC
-STR
invalid_incorrect
["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 +VAL |
1 3 3 3 -VAL |
1 3 3 3 -NODE|
1 3 3 3 =EOL |\x0a
2 0 4 4 =REST|[.a,.b,.c,#invalid
2 18 22 22 =REST|\x0a
3 0 23 23 =REST|]
3 1 24 24 =REST|\x0a
4 0 25 25 -DOC |
invalid_incorrect
["a","b","c"]
invalid_incorrect
["a","b","c"]
invalid_incorrect
+STR
+DOC ---
+SEQ
=VAL :a
=VAL :b
=VAL :c
-SEQ
-DOC
-STR
invalid_incorrect
[
"a",
"b",
"c"
]
invalid_incorrect
[
'a',
'b',
'c'
]
invalid_incorrect
[
"a",
"b",
"c,#invalid"
]
invalid_incorrect
[
'a',
'b',
'c,#invalid'
]
invalid_incorrect
[
"a",
"b",
"c"
]
invalid_incorrect
[
'a',
'b',
'c'
]
invalid_incorrect
+STR
+DOC ---
+SEQ []
=VAL :a
=VAL :b
=VAL :c
-SEQ
-DOC
-STR
invalid_incorrect
[
"a",
"b",
"c"
]
invalid_incorrect
['a', 'b', 'c']
invalid_incorrect
+STR
+DOC ---
+SEQ []
=VAL :a
=VAL :b
=VAL :c
-SEQ
-DOC
-STR
invalid_incorrect
[
"a",
"b",
"c"
]
invalid_incorrect
['a', 'b', 'c']
invalid_incorrect
["a","b","c"]
invalid_incorrect
+STR
+DOC
+SEQ
=VAL :a
=VAL :b
=VAL :c
-SEQ
-DOC
-STR
invalid_correct
stdin:2:11: error: invalid comment after comma
[ a, b, c,#invalid
^
+STR
+DOC ---
invalid_correct
stdin:2:11: error: invalid comment after comma
[ a, b, c,#invalid
^
invalid_correct
Unhandled exception. YamlDotNet.Core.SemanticErrorException: (Line: 2, Col: 10, Idx: 13) - (Line: 2, Col: 11, Idx: 14): While parsing a flow sequence, did not find expected ',' or ']'.
at YamlDotNet.Core.Parser.ParseFlowSequenceEntry(Boolean isFirst)
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 ---
+SEQ
=VAL :a
=VAL :b
=VAL :c
invalid_correct
Unhandled exception. YamlDotNet.Core.SemanticErrorException: (Line: 2, Col: 10, Idx: 13) - (Line: 2, Col: 11, Idx: 14): While parsing a flow sequence, did not find expected ',' or ']'.
at YamlDotNet.Core.Parser.ParseFlowSequenceEntry(Boolean isFirst)
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.CollectionNodeDeserializer.DeserializeHelper(Type tItem, IParser parser, Func`3 nestedObjectDeserializer, IList result, Boolean canUpdate)
at YamlDotNet.Serialization.NodeDeserializers.CollectionNodeDeserializer.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 = 4, posCharOffset = 4, posLine = 2, posColumn = 0} (Lexical error near "[ a, b, c,#invalid")
+STR
+DOC ---
=VAL :
invalid_correct
hsyaml-parser: user error (Lexical error near "[ a, b, c,#invalid")
invalid_correct
Comments must be separated from other tokens by white space characters at line 2, column 11:
[ a, b, c,#invalid
^^^^^^^^
+STR
+DOC ---
+SEQ []
=VAL :a
=VAL :b
=VAL :c
-SEQ
-DOC
-STR
invalid_correct
/yaml/bin/js-yaml-json:9
if (doc.errors.length !== 0) throw doc.errors[0]
^
YAMLParseError: Comments must be separated from other tokens by white space characters at line 2, column 11:
[ a, b, c,#invalid
^^^^^^^^
at Composer.onError (/node/node_modules/yaml/dist/compose/composer.js:69:34)
at Object.resolveProps (/node/node_modules/yaml/dist/compose/resolve-props.js:46:21)
at Object.resolveFlowCollection (/node/node_modules/yaml/dist/compose/resolve-flow-collection.js:27:36)
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 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)
at Composer.next (/node/node_modules/yaml/dist/compose/composer.js:149:40)
at next (<anonymous>)
at Composer.compose (/node/node_modules/yaml/dist/compose/composer.js:131:25) {
code: 'MISSING_CHAR',
pos: [ 14, 22 ],
linePos: [ { line: 2, col: 11 }, { line: 2, col: 19 } ]
}
Node.js v20.13.1
invalid_correct
Line : 2
Column : 11
Message : Invalid plain scalar
Where : /perl5/lib/perl5/YAML/PP/Lexer.pm line 378
YAML : "#invalid"
at /yaml/bin/perl-pp-event line 46.
+STR
+DOC ---
+SEQ []
=VAL :a
=VAL :b
=VAL :c
invalid_correct
Line : 2
Column : 11
Message : Invalid plain scalar
Where : /perl5/lib/perl5/YAML/PP/Lexer.pm line 378
YAML : "#invalid"
at /perl5/lib/perl5/YAML/PP/Loader.pm line 94.
invalid_correct
Line : 2
Column : 11
Message : Invalid plain scalar
Where : /perl5/lib/perl5/YAML/PP/Lexer.pm line 378
YAML : "#invalid"
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 failed to classify line '[ a, b, c,#invalid' at /yaml/bin/perl-tiny-json line 12.
invalid_correct
YAML::Tiny failed to classify line '[ a, b, c,#invalid' at /yaml/bin/perl-tiny-perl line 15.
invalid_correct
YAML Error: Expected separator '---'
Code: YAML_PARSE_ERR_NO_SEPARATOR
Line: 2
Document: 2
at /perl5/lib/perl5/YAML/Loader.pm line 88.
invalid_correct
YAML Error: Expected separator '---'
Code: YAML_PARSE_ERR_NO_SEPARATOR
Line: 2
Document: 2
at /perl5/lib/perl5/YAML/Loader.pm line 88.