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

Multiline JS comment misinterpreted

pquentin opened this issue · comments

Given the following test.js file:

/*
comment
*/

The command pycco test.js && grep err docs/test.html && echo "bad" || echo "ok" prints ok for 22e157e but prints bad for a5c7c78 (used git bisect).

I think pycco should not print <div class="highlight"><pre><span class="o">*</span><span class="err">/</span></pre></div>. but only <div class="highlight"><pre></pre></div>. It's only the code section that appears to be affected by the bug, not the docs.