diff --git a/lib/yaml.js b/lib/yaml.js index 9dcc564..7958ed9 100644 --- a/lib/yaml.js +++ b/lib/yaml.js @@ -238,8 +238,10 @@ Parser.prototype.parse = function() { case 'int': return parseInt(this.advanceValue()) case 'true': - return true + this.advance(); + return true; case 'false': + this.advance(); return false } }