From fdbd4b8fda9db85caab00c7734a9decd3a72e8f0 Mon Sep 17 00:00:00 2001 From: "Erik M. Bray" Date: Thu, 14 Apr 2016 12:03:32 +0200 Subject: Fixes two issues: Allows special characters in tag names (but not in named tag handles, which are still just limited to [\w-]). Also allows the # character in tag names, which technically should be allowed. Adds a regression test which previously caused an error due to the foo/bar tag being parsed as just foo, resulting an in rest of the line being parsed as an invalid scalar. --- tests/examplefiles/example.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests/examplefiles/example.yaml') diff --git a/tests/examplefiles/example.yaml b/tests/examplefiles/example.yaml index 9c0ed9d0..17544c02 100644 --- a/tests/examplefiles/example.yaml +++ b/tests/examplefiles/example.yaml @@ -1,3 +1,12 @@ +# +# Regression tests +# + +%TAG ! tag:example.com:foo/ +--- +test: !foo/bar {a: 'asdf'} +test2: fred +... # # Examples from the Preview section of the YAML specification -- cgit v1.2.1