Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
39 lines (34 sloc) 608 Bytes
=== Spec Example 6.18. Primary Tag Handle [1.3]
--- from: 9WXW, modified for YAML 1.3
--- tags: local-tag spec directive tag 1.3-mod
--- in-yaml(<)
# Private
---
!foo "bar"
...
# Global
%TAG ! tag:example.com,2000:app/
---
!foo "bar"
--- out-yaml(<)
---
!foo "bar"
...
--- !<tag:example.com,2000:app/foo>
"bar"
--- emit-yaml(<)
--- !foo "bar"
...
--- !<tag:example.com,2000:app/foo> "bar"
--- in-json(<)
"bar"
"bar"
--- test-event
+STR
+DOC ---
=VAL <!foo> "bar
-DOC ...
+DOC ---
=VAL <tag:example.com,2000:app/foo> "bar
-DOC
-STR