Skip to content

Instantly share code, notes, and snippets.

@trans
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trans/c28a41353d76a7b78bef to your computer and use it in GitHub Desktop.
Save trans/c28a41353d76a7b78bef to your computer and use it in GitHub Desktop.
--- !!yaml
- !!version "2.0"
- !!tags
"!!": "tag:example.com,2000:app/"
---
!!int 1 - 3 # Interval, not integer
--- !!version "2.0"
--- !!tags
"!!": "tag:example.com,2000:app/"
---
!!int 1 - 3 # Interval, not integer
--- !!directive
YAML: "2.0"
TAGS:
"!!": "tag:example.com,2000:app/"
---
!!int 1 - 3 # Interval, not integer
@ingydotnet
Copy link

I like igny2.yaml (sic) the best but ingy1.yaml should be allowed as well, since the inline documents could just as easily be external docs called ingy1.version.yaml and ingy1.tags.yaml.

I think we can lose the term directive as that usually means a line in a file that affects parsing. I prefer the terms meta or yaml for this meaning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment