Skip to content

Commit

Permalink
Revert "Let the speedup block locator complain about surplus closing"
Browse files Browse the repository at this point in the history
Commit 4cf0cb6 adds some
backward-incompatible changes to pyScss: not it fails on a valid
sass/scss filed. It means that Python and C implementation of parsers
are different.

This patch reverts the commit mentioned above to have the same
functionality between Python and C implementations.
  • Loading branch information
e0ne committed Mar 21, 2020
1 parent 08e8ae4 commit ff9de4a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions scss/src/block_locator.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,12 +398,6 @@ BlockLocator_iternext(BlockLocator *self)
if (c == '\\') {
/* Start of an escape sequence; ignore next character */
self->codestr_ptr++;
} else if (c == '}' && self->depth == 0) {
self->block.error = -1;
sprintf(self->exc, "Unexpected closing brace on line %d", self->lineno);
#ifdef DEBUG
fprintf(stderr, "\t%s\n", self->exc);
#endif
}
/* only ASCII is special syntactically */
else if (c < 256) {
Expand Down

0 comments on commit ff9de4a

Please sign in to comment.