diff options
| author | Erik M. Bray <erik.m.bray@gmail.com> | 2016-04-14 12:03:32 +0200 |
|---|---|---|
| committer | Erik M. Bray <erik.m.bray@gmail.com> | 2016-04-14 12:03:32 +0200 |
| commit | fdbd4b8fda9db85caab00c7734a9decd3a72e8f0 (patch) | |
| tree | 372836ced8cc1ee3ec5d2228de3ca2a9a7eb7667 /tests/examplefiles/example.yaml | |
| parent | eeda49eb8b744ed9c47f5873667233a52717155b (diff) | |
| download | pygments-git-fdbd4b8fda9db85caab00c7734a9decd3a72e8f0.tar.gz | |
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.
Diffstat (limited to 'tests/examplefiles/example.yaml')
| -rw-r--r-- | tests/examplefiles/example.yaml | 9 |
1 files changed, 9 insertions, 0 deletions
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 |
