Skip to content

Commit

Permalink
yaml update to 0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
burner committed May 31, 2019
1 parent 461a1d6 commit 1086ba0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dub.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
"copyright": "Copyright © 2016, burner",
"license": "LGPL3",
"dependencies": {
"dyaml": "~>0.7"
"dyaml": "~>0.8"
}
}
4 changes: 3 additions & 1 deletion source/app.d
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1086ba0

Please sign in to comment.