pycco-docs / pycco

Literate-style documentation generator.

Home Page:https://pycco-docs.github.io/pycco/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

javascript multiline comments cause re parser to throw

karolk opened this issue · comments

File "/usr/local/lib/python2.6/dist-packages/Pycco-0.2.0-py2.6.egg/pycco/main.py", line 92, in parse
line = re.sub(language["multiend"],'',line)
File "/usr/lib/python2.6/re.py", line 151, in sub
return _compile(pattern, 0).sub(repl, string, count)
File "/usr/lib/python2.6/re.py", line 245, in _compile
raise error, v # invalid expression

They should probably be slash escaped but this breaks actual matching.

This is fixed already, see here:

6d87e57#pycco/main.py

Closing as resolved (fixed in both 6d87e57 and 052ccc5).