pycco-docs / pycco

Literate-style documentation generator.
https://pycco-docs.github.io/pycco/
Other
842 stars 144 forks source link

Multiline JS comment misinterpreted #92

Open pquentin opened 8 years ago

pquentin commented 8 years ago

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.