From 9784cd8be72194f788fb9d1d3373d3ce5b18999e Mon Sep 17 00:00:00 2001 From: Jeff Watkins Date: Mon, 24 Jan 2011 20:16:15 -0800 Subject: [PATCH] Fixed the problem where booleans would fail to advance --- lib/yaml.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 } }