summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kolodyazhny <e0ne@e0ne.info>2020-03-21 19:06:23 +0200
committerIvan Kolodyazhny <e0ne@e0ne.info>2020-03-21 19:06:23 +0200
commitff9de4af2385cff24ac5e2c775f27e40e9befe17 (patch)
treeecd7b1501de91d7ad79b3c97a251bccd29e3f39b
parent08e8ae4875a9690739dc10b8a3410cb593d0138b (diff)
downloadpyscss-ff9de4af2385cff24ac5e2c775f27e40e9befe17.tar.gz
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.
-rw-r--r--scss/src/block_locator.c6
1 files changed, 0 insertions, 6 deletions
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) {