Skip to content

Commit aa7a45b

Browse files
committed
Added comment about Jison's topState()
1 parent 2f9495c commit aa7a45b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/handlebars.l

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ ID [^\s!"#%-,\.\/;->@\[-\^`\{-~]+/{LOOKAHEAD}
5353
<raw>"{{{{"/[^/] this.begin('raw'); return 'CONTENT';
5454
<raw>"{{{{/"[^\s!"#%-,\.\/;->@\[-\^`\{-~]+/[=}\s\/.]"}}}}" {
5555
this.popState();
56+
// Should be using `this.topState()` below, but it currently
57+
// returns the second top instead of the first top. Opened an
58+
// issue about it at https://github.com/zaach/jison/issues/291
5659
if (this.conditionStack[this.conditionStack.length-1] === 'raw') {
5760
return 'CONTENT';
5861
} else {

0 commit comments

Comments
 (0)