git subrepo clone --branch=0.2.5 https://github.com/yaml/libyaml.git deps/libyaml

subrepo:
  subdir:   "deps/libyaml"
  merged:   "2c891fc"
upstream:
  origin:   "https://github.com/yaml/libyaml.git"
  branch:   "0.2.5"
  commit:   "2c891fc"
git-subrepo:
  version:  "0.4.6"
  origin:   "???"
  commit:   "???"
This commit is contained in:
2024-03-05 22:38:36 -08:00
parent ca1fdb053d
commit 11e8fad44e
63 changed files with 18605 additions and 0 deletions

10
deps/libyaml/examples/anchors.yaml vendored Normal file
View File

@@ -0,0 +1,10 @@
base: &base
name: Everyone has same name
foo: &foo
<<: *base
age: 10
bar: &bar
<<: *base
age: 20

2
deps/libyaml/examples/array.yaml vendored Normal file
View File

@@ -0,0 +1,2 @@
- member
- member2

14
deps/libyaml/examples/global-tag.yaml vendored Normal file
View File

@@ -0,0 +1,14 @@
%TAG ! tag:clarkevans.com,2002:
--- !shape
# Use the ! handle for presenting
# tag:clarkevans.com,2002:circle
- !circle
center: &ORIGIN {x: 73, y: 129}
radius: 7
- !line
start: *ORIGIN
finish: { x: 89, y: 102 }
- !label
start: *ORIGIN
color: 0xFFEEBB
text: Pretty vector drawing.

1
deps/libyaml/examples/json.yaml vendored Normal file
View File

@@ -0,0 +1 @@
{"key": ["value", 3]}

2
deps/libyaml/examples/mapping.yaml vendored Normal file
View File

@@ -0,0 +1,2 @@
key: value
other-key: other-value

1
deps/libyaml/examples/numbers.yaml vendored Normal file
View File

@@ -0,0 +1 @@
[100, 12.5, -130, 1.3e+9]

7
deps/libyaml/examples/strings.yaml vendored Normal file
View File

@@ -0,0 +1,7 @@
unqouted: string
literal-block: |
This entire block of text will be the value of the 'literal-block' key,
with line breaks being preserved.
folded: >
This entire block of text will be the value of 'folded', but this
time, all newlines will be replaced with a single space.

7
deps/libyaml/examples/tags.yaml vendored Normal file
View File

@@ -0,0 +1,7 @@
gif_file: !!binary |
R0lGODlhDAAMAIQAAP//9/X17unp5WZmZgAAAOfn515eXvPz7Y6OjuDg4J+fn5
OTk6enp56enmlpaWNjY6Ojo4SEhP/++f/++f/++f/++f/++f/++f/++f/++f/+
+f/++f/++f/++f/++f/++SH+Dk1hZGUgd2l0aCBHSU1QACwAAAAADAAMAAAFLC
AgjoEwnuNAFOhpEMTRiggcz4BNJHrv/zCFcLiwMWYNG84BwwEeECcgggoBADs=
explicit_string: !!str 0.5
python_tag: !!python/complex '1.0+2.0j'

View File

@@ -0,0 +1,3 @@
%YAML 1.1
---
[1, 2, 3]