, is a valid character for unquoted string, except in flow
From: https://yaml.org/spec/1.2.2/#733-plain-styleinside flow collections, plain scalars must not contain the “[”, “]”, “{”, “}” and “,” characters.
To handle this the tokenizer need to tracks if it's within a flow or not.
{} is a valid map.
I can split the PR in two if you prefer, but also the two commits are easy to review independently.
Hi Jakub, thanks for the lib.
I found two minor issues with the libraries:
,
is a valid character for unquoted string, except in flowFrom: https://yaml.org/spec/1.2.2/#733-plain-style inside flow collections, plain scalars must not contain the “[”, “]”, “{”, “}” and “,” characters. To handle this the tokenizer need to tracks if it's within a flow or not.
{}
is a valid map.I can split the PR in two if you prefer, but also the two commits are easy to review independently.