aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ext_depends/D-YAML/source/dyaml/scanner.d
diff options
context:
space:
mode:
Diffstat (limited to 'src/ext_depends/D-YAML/source/dyaml/scanner.d')
-rw-r--r--src/ext_depends/D-YAML/source/dyaml/scanner.d6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ext_depends/D-YAML/source/dyaml/scanner.d b/src/ext_depends/D-YAML/source/dyaml/scanner.d
index 2009521..3f0f394 100644
--- a/src/ext_depends/D-YAML/source/dyaml/scanner.d
+++ b/src/ext_depends/D-YAML/source/dyaml/scanner.d
@@ -185,6 +185,12 @@ struct Scanner
return tokens_.empty;
}
+ /// Set file name.
+ void name(string name) @safe pure nothrow @nogc
+ {
+ reader_.name = name;
+ }
+
private:
/// Most scanning error messages have the same format; so build them with this
/// function.