avoid use of a static constructor in parser
this makes usage in module constructors more reliable and improves consistency with the emitter
This commit is contained in:
parent
e5d8c86395
commit
989e1b3375
|
@ -114,11 +114,8 @@ final class Parser
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
///Default tag handle shortcuts and replacements.
|
///Default tag handle shortcuts and replacements.
|
||||||
static TagDirective[] defaultTagDirectives_;
|
static TagDirective[] defaultTagDirectives_ =
|
||||||
static this()
|
[TagDirective("!", "!"), TagDirective("!!", "tag:yaml.org,2002:")];
|
||||||
{
|
|
||||||
defaultTagDirectives_ = [TagDirective("!", "!"), TagDirective("!!", "tag:yaml.org,2002:")];
|
|
||||||
}
|
|
||||||
|
|
||||||
///Scanner providing YAML tokens.
|
///Scanner providing YAML tokens.
|
||||||
Scanner scanner_;
|
Scanner scanner_;
|
||||||
|
|
Loading…
Reference in a new issue