aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2021-04-22 13:22:32 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2021-04-23 09:55:06 -0400
commitb8fadcd74139d09b470100a6deef65ac13d4442a (patch)
tree310cd4760554721685b5e1d39645623c10c47d89
parentspine options, pod uses source file structure (diff)
ext-dep: d-yaml updated
-rw-r--r--dub_describe.json480
-rw-r--r--src/ext_depends/D-YAML.meta2
-rw-r--r--src/ext_depends/D-YAML/source/dyaml/resolver.d75
3 files changed, 515 insertions, 42 deletions
diff --git a/dub_describe.json b/dub_describe.json
index 2dc5cf3..58efb97 100644
--- a/dub_describe.json
+++ b/dub_describe.json
@@ -385,6 +385,134 @@
},
{
"role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/composer.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/constructor.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/dumper.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/emitter.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/encoding.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/escapes.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/event.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/exception.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/linebreak.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/loader.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/node.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/package.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/parser.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/queue.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/reader.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/representer.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/resolver.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/scanner.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/serializer.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/style.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/tagdirective.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/test/common.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/test/compare.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/test/constructor.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/test/emitter.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/test/errors.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/test/inputoutput.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/test/reader.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/test/representer.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/test/resolver.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/test/tokens.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/token.d"
+ },
+ {
+ "role": "import_",
"path": "src/ext_depends/d2sqlite3/source/d2sqlite3/database.d"
},
{
@@ -819,6 +947,134 @@
"path": "src/ext_depends/D-YAML/testsuite/source/app.d"
},
{
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/composer.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/constructor.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/dumper.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/emitter.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/encoding.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/escapes.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/event.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/exception.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/linebreak.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/loader.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/node.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/package.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/parser.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/queue.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/reader.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/representer.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/resolver.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/scanner.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/serializer.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/style.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/tagdirective.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/test/common.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/test/compare.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/test/constructor.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/test/emitter.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/test/errors.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/test/inputoutput.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/test/reader.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/test/representer.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/test/resolver.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/test/tokens.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/token.d"
+ },
+ {
"role": "source",
"path": "src/ext_depends/d2sqlite3/source/d2sqlite3/database.d"
},
@@ -1437,6 +1693,134 @@
},
{
"role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/composer.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/constructor.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/dumper.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/emitter.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/encoding.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/escapes.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/event.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/exception.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/linebreak.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/loader.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/node.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/package.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/parser.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/queue.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/reader.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/representer.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/resolver.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/scanner.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/serializer.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/style.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/tagdirective.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/test/common.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/test/compare.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/test/constructor.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/test/emitter.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/test/errors.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/test/inputoutput.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/test/reader.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/test/representer.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/test/resolver.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/test/tokens.d"
+ },
+ {
+ "role": "import_",
+ "path": "src/ext_depends/D-YAML_/source/dyaml/token.d"
+ },
+ {
+ "role": "import_",
"path": "src/ext_depends/d2sqlite3/source/d2sqlite3/database.d"
},
{
@@ -1619,6 +2003,38 @@
"./src/ext_depends/D-YAML/source/dyaml/test/resolver.d",
"./src/ext_depends/D-YAML/source/dyaml/test/tokens.d",
"./src/ext_depends/D-YAML/source/dyaml/token.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/composer.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/constructor.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/dumper.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/emitter.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/encoding.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/escapes.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/event.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/exception.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/linebreak.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/loader.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/node.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/package.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/parser.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/queue.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/reader.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/representer.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/resolver.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/scanner.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/serializer.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/style.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/tagdirective.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/test/common.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/test/compare.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/test/constructor.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/test/emitter.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/test/errors.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/test/inputoutput.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/test/reader.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/test/representer.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/test/resolver.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/test/tokens.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/token.d",
"./src/ext_depends/d2sqlite3/source/d2sqlite3/database.d",
"./src/ext_depends/d2sqlite3/source/d2sqlite3/internal/memory.d",
"./src/ext_depends/d2sqlite3/source/d2sqlite3/internal/util.d",
@@ -1783,6 +2199,38 @@
"./src/ext_depends/D-YAML/source/dyaml/test/tokens.d",
"./src/ext_depends/D-YAML/source/dyaml/token.d",
"./src/ext_depends/D-YAML/testsuite/source/app.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/composer.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/constructor.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/dumper.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/emitter.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/encoding.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/escapes.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/event.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/exception.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/linebreak.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/loader.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/node.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/package.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/parser.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/queue.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/reader.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/representer.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/resolver.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/scanner.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/serializer.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/style.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/tagdirective.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/test/common.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/test/compare.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/test/constructor.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/test/emitter.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/test/errors.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/test/inputoutput.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/test/reader.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/test/representer.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/test/resolver.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/test/tokens.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/token.d",
"./src/ext_depends/imageformats/imageformats/bmp.d",
"./src/ext_depends/imageformats/imageformats/jpeg.d",
"./src/ext_depends/imageformats/imageformats/package.d",
@@ -2000,6 +2448,38 @@
"./src/ext_depends/D-YAML/source/dyaml/test/resolver.d",
"./src/ext_depends/D-YAML/source/dyaml/test/tokens.d",
"./src/ext_depends/D-YAML/source/dyaml/token.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/composer.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/constructor.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/dumper.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/emitter.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/encoding.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/escapes.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/event.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/exception.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/linebreak.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/loader.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/node.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/package.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/parser.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/queue.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/reader.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/representer.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/resolver.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/scanner.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/serializer.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/style.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/tagdirective.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/test/common.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/test/compare.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/test/constructor.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/test/emitter.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/test/errors.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/test/inputoutput.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/test/reader.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/test/representer.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/test/resolver.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/test/tokens.d",
+ "./src/ext_depends/D-YAML_/source/dyaml/token.d",
"./src/ext_depends/d2sqlite3/source/d2sqlite3/database.d",
"./src/ext_depends/d2sqlite3/source/d2sqlite3/internal/memory.d",
"./src/ext_depends/d2sqlite3/source/d2sqlite3/internal/util.d",
diff --git a/src/ext_depends/D-YAML.meta b/src/ext_depends/D-YAML.meta
index 4a9839a..22193e0 100644
--- a/src/ext_depends/D-YAML.meta
+++ b/src/ext_depends/D-YAML.meta
@@ -1,3 +1,3 @@
-D-YAML ecbd63ed
+D-YAML ddd418fa
https://github.com/dlang-community/D-YAML
Boost Software License 1.0 (BSL-1.0)
diff --git a/src/ext_depends/D-YAML/source/dyaml/resolver.d b/src/ext_depends/D-YAML/source/dyaml/resolver.d
index ceed1e5..f57cbbe 100644
--- a/src/ext_depends/D-YAML/source/dyaml/resolver.d
+++ b/src/ext_depends/D-YAML/source/dyaml/resolver.d
@@ -27,50 +27,43 @@ import dyaml.exception;
/// Type of `regexes`
private alias RegexType = Tuple!(string, "tag", const Regex!char, "regexp", string, "chars");
-private immutable RegexType[] regexes;
-
-shared static this() @safe
-{
- RegexType[] tmp;
- tmp ~= RegexType("tag:yaml.org,2002:bool",
- regex(r"^(?:yes|Yes|YES|no|No|NO|true|True|TRUE" ~
- "|false|False|FALSE|on|On|ON|off|Off|OFF)$"),
- "yYnNtTfFoO");
- tmp ~= RegexType("tag:yaml.org,2002:float",
- regex(r"^(?:[-+]?([0-9][0-9_]*)\\.[0-9_]*" ~
- "(?:[eE][-+][0-9]+)?|[-+]?(?:[0-9][0-9_]" ~
- "*)?\\.[0-9_]+(?:[eE][-+][0-9]+)?|[-+]?" ~
- "[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]" ~
- "*|[-+]?\\.(?:inf|Inf|INF)|\\." ~
- "(?:nan|NaN|NAN))$"),
- "-+0123456789.");
- tmp ~= RegexType("tag:yaml.org,2002:int",
- regex(r"^(?:[-+]?0b[0-1_]+" ~
- "|[-+]?0[0-7_]+" ~
- "|[-+]?(?:0|[1-9][0-9_]*)" ~
- "|[-+]?0x[0-9a-fA-F_]+" ~
- "|[-+]?[1-9][0-9_]*(?::[0-5]?[0-9])+)$"),
- "-+0123456789");
- tmp ~= RegexType("tag:yaml.org,2002:merge", regex(r"^<<$"), "<");
- tmp ~= RegexType("tag:yaml.org,2002:null",
- regex(r"^$|^(?:~|null|Null|NULL)$"), "~nN\0");
- tmp ~= RegexType("tag:yaml.org,2002:timestamp",
- regex(r"^[0-9][0-9][0-9][0-9]-[0-9][0-9]-" ~
- "[0-9][0-9]|[0-9][0-9][0-9][0-9]-[0-9]" ~
- "[0-9]?-[0-9][0-9]?[Tt]|[ \t]+[0-9]" ~
- "[0-9]?:[0-9][0-9]:[0-9][0-9]" ~
- "(?:\\.[0-9]*)?(?:[ \t]*Z|[-+][0-9]" ~
- "[0-9]?(?::[0-9][0-9])?)?$"),
- "0123456789");
- tmp ~= RegexType("tag:yaml.org,2002:value", regex(r"^=$"), "=");
-
+private immutable RegexType[] regexes = [
+ RegexType("tag:yaml.org,2002:bool",
+ regex(r"^(?:yes|Yes|YES|no|No|NO|true|True|TRUE" ~
+ "|false|False|FALSE|on|On|ON|off|Off|OFF)$"),
+ "yYnNtTfFoO"),
+ RegexType("tag:yaml.org,2002:float",
+ regex(r"^(?:[-+]?([0-9][0-9_]*)\\.[0-9_]*" ~
+ "(?:[eE][-+][0-9]+)?|[-+]?(?:[0-9][0-9_]" ~
+ "*)?\\.[0-9_]+(?:[eE][-+][0-9]+)?|[-+]?" ~
+ "[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]" ~
+ "*|[-+]?\\.(?:inf|Inf|INF)|\\." ~
+ "(?:nan|NaN|NAN))$"),
+ "-+0123456789."),
+ RegexType("tag:yaml.org,2002:int",
+ regex(r"^(?:[-+]?0b[0-1_]+" ~
+ "|[-+]?0[0-7_]+" ~
+ "|[-+]?(?:0|[1-9][0-9_]*)" ~
+ "|[-+]?0x[0-9a-fA-F_]+" ~
+ "|[-+]?[1-9][0-9_]*(?::[0-5]?[0-9])+)$"),
+ "-+0123456789"),
+ RegexType("tag:yaml.org,2002:merge", regex(r"^<<$"), "<"),
+ RegexType("tag:yaml.org,2002:null",
+ regex(r"^$|^(?:~|null|Null|NULL)$"), "~nN\0"),
+ RegexType("tag:yaml.org,2002:timestamp",
+ regex(r"^[0-9][0-9][0-9][0-9]-[0-9][0-9]-" ~
+ "[0-9][0-9]|[0-9][0-9][0-9][0-9]-[0-9]" ~
+ "[0-9]?-[0-9][0-9]?[Tt]|[ \t]+[0-9]" ~
+ "[0-9]?:[0-9][0-9]:[0-9][0-9]" ~
+ "(?:\\.[0-9]*)?(?:[ \t]*Z|[-+][0-9]" ~
+ "[0-9]?(?::[0-9][0-9])?)?$"),
+ "0123456789"),
+ RegexType("tag:yaml.org,2002:value", regex(r"^=$"), "="),
//The following resolver is only for documentation purposes. It cannot work
//because plain scalars cannot start with '!', '&', or '*'.
- tmp ~= RegexType("tag:yaml.org,2002:yaml", regex(r"^(?:!|&|\*)$"), "!&*");
-
- regexes = () @trusted { return cast(immutable)tmp; }();
-}
+ RegexType("tag:yaml.org,2002:yaml", regex(r"^(?:!|&|\*)$"), "!&*"),
+];
/**
* Resolves YAML tags (data types).