diff --git a/dub.json b/dub.json index 4d2b0c5..9bae98b 100644 --- a/dub.json +++ b/dub.json @@ -7,6 +7,6 @@ "copyright": "Copyright © 2016, burner", "license": "LGPL3", "dependencies": { - "dyaml": "~>0.7" + "dyaml": "~>0.8" } } diff --git a/source/app.d b/source/app.d index f9b543d..29e2bd0 100644 --- a/source/app.d +++ b/source/app.d @@ -101,7 +101,9 @@ class Darser { // Node.Pair has a .key and a .value auto jt = it.as!(Node.Pair[])(); foreach(ref kt; jt) { - if(kt.value.isScalar() && kt.value.as!string() == "extern") { + if(kt.value.nodeID == NodeID.scalar + && kt.value.as!string() == "extern") + { this.externRules[kt.key.as!string()] = new Rule(kt.key.as!string(), true); continue;