You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But, it fails in a similar manner to that reported on %TAG. In this case, it is the c-verbatim-tag which includes ns-uri-char+ where the # is again excluded.
Working around this requires a pre-parsing step to replace these characters are appropriate before parsing and after serializing.
This is tested using Ruby Psych version 4.0.4, which wraps libyaml, and the issues seem to be entirely within the library.
As noted in yaml/yaml-spec#268 (comment), Psych does not accept a
%TAG
prefix including a#
, which seems to be due to the following code:libyaml/src/scanner.c
Lines 2603 to 2627 in f8f760f
According to theYAML 1.2 Spec the
ns-uri-char
does include#
, which is missing from the scanner.This prevents creating a TAG line such as the following:
The text was updated successfully, but these errors were encountered: