From ff9de4af2385cff24ac5e2c775f27e40e9befe17 Mon Sep 17 00:00:00 2001 From: Ivan Kolodyazhny Date: Sat, 21 Mar 2020 19:06:23 +0200 Subject: Revert "Let the speedup block locator complain about surplus closing" Commit 4cf0cb606ad32a04774a0a3ca9186e238bf61c1f 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. --- scss/src/block_locator.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'scss') diff --git a/scss/src/block_locator.c b/scss/src/block_locator.c index 8e634a4..193b62c 100644 --- a/scss/src/block_locator.c +++ b/scss/src/block_locator.c @@ -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) { -- cgit v1.2.1