Skip to content

Commit

Permalink
Fix nested quote parsing
Browse files Browse the repository at this point in the history
Counter is not properly incremented during quote parsing. Fix it.
  • Loading branch information
RauliL committed Aug 16, 2017
1 parent 2c108a2 commit 54e2c6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/value-quote.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ namespace plorth

if (token.is(token::type_lparen))
{
++it;
++counter;
}
else if (token.is(token::type_rparen) && !--counter)
{
Expand Down

0 comments on commit 54e2c6b

Please sign in to comment.