aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMihai Bazon <mihai@bazon.net>2014-01-21 10:38:59 +0200
committerMihai Bazon <mihai@bazon.net>2014-01-21 10:38:59 +0200
commit1d0127de2134f2086e1de51d47782118470397ed (patch)
tree6f3ee6d4f59f0f87e9a4e398e9c473fb40fc63b0
parent2d8fc616773e30df955de02d99406f114b87490a (diff)
downloadtracifyjs-1d0127de2134f2086e1de51d47782118470397ed.tar.gz
tracifyjs-1d0127de2134f2086e1de51d47782118470397ed.zip
Fix end token for conditionals. Close #404
-rw-r--r--lib/parse.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/parse.js b/lib/parse.js
index 1a3895d9..b061067e 100644
--- a/lib/parse.js
+++ b/lib/parse.js
@@ -1381,7 +1381,7 @@ function parse($TEXT, options) {
condition : expr,
consequent : yes,
alternative : expression(false, no_in),
- end : peek()
+ end : prev()
});
}
return expr;