diff options
author | Eric Nielsen <eric@amalgamar.com.br> | 2015-07-19 12:34:44 -0300 |
---|---|---|
committer | Eric Nielsen <eric@amalgamar.com.br> | 2015-07-19 12:34:44 -0300 |
commit | aa7a45b44350caf35cd47a46a818271fb355b3f3 (patch) | |
tree | 43162b37fd08545b5dd7848a69d1f1e1402b6772 /src | |
parent | 2f9495c1df52eb47b0e84d77fc964cef4581581c (diff) | |
download | handlebars.js-aa7a45b44350caf35cd47a46a818271fb355b3f3.zip handlebars.js-aa7a45b44350caf35cd47a46a818271fb355b3f3.tar.gz handlebars.js-aa7a45b44350caf35cd47a46a818271fb355b3f3.tar.bz2 |
Added comment about Jison's topState()
Diffstat (limited to 'src')
-rw-r--r-- | src/handlebars.l | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/handlebars.l b/src/handlebars.l index 4d2cd62..f7df8f5 100644 --- a/src/handlebars.l +++ b/src/handlebars.l @@ -53,6 +53,9 @@ ID [^\s!"#%-,\.\/;->@\[-\^`\{-~]+/{LOOKAHEAD} <raw>"{{{{"/[^/] this.begin('raw'); return 'CONTENT'; <raw>"{{{{/"[^\s!"#%-,\.\/;->@\[-\^`\{-~]+/[=}\s\/.]"}}}}" { this.popState(); + // Should be using `this.topState()` below, but it currently + // returns the second top instead of the first top. Opened an + // issue about it at https://github.com/zaach/jison/issues/291 if (this.conditionStack[this.conditionStack.length-1] === 'raw') { return 'CONTENT'; } else { |