Kronuz / pyScss

pyScss, a Scss compiler for Python
MIT License
583 stars 141 forks source link

Different compilation results with and without libpcre #418

Open istvandbsd opened 3 years ago

istvandbsd commented 3 years ago

Platform: ubuntu 18.04

The same scss fails when installing pyscss without libpcre3-dev:

Command: python3 -m scss < example.scss

Result:

on line 1 of /<stdin>
Traceback:
File "/usr/local/lib/python3.6/dist-packages/scss/compiler.py", line 349, in manage_children
self._manage_children_impl(rule, scope)
File "/usr/local/lib/python3.6/dist-packages/scss/compiler.py", line 359, in _manage_children_impl
for c_lineno, c_property, c_codestr in locate_blocks(rule.unparsed_contents):
File "/usr/local/lib/python3.6/dist-packages/scss/grammar/scanner.py", line 111, in locate_blocks
.format(lineno, error)
SyntaxError: Couldn't parse block starting on line 114: Block never closed

When libpcre3-dev is present at install (and it can be linked against), the compilation goes through fine.

The way I understand it, there shouldn't be any difference other than performance.

Attached the example I was using. example.zip