开发者

why do you have only AlphaNumeric allowed in anchor name?

开发者 https://www.devze.com 2023-02-08 03:08 出处:网络
I am using yaml-cpp in my project, and find out that an anchor name is only allowed to consist of AlphaNumeric characters. I failed to find such restriction in the spec, only found this:

I am using yaml-cpp in my project, and find out that an anchor name is only allowed to consist of AlphaNumeric characters. I failed to find such restriction in the spec, only found this:

Anchor names must not contain the “[”, “]”, “{”, “}” and “,” characters

Can you please indicate if this is yaml-cpp implementation specificity or there is information in th开发者_如何学JAVAe spec, which I missed? Thanks!


You're absolutely right - and as of revision 429, anchor parsing is more relaxed. Thanks for the note!

0

精彩评论

暂无评论...
验证码 换一张
取 消