Support for undocumented files #29

wants to merge 3 commits into


None yet

2 participants



So basically my commit was about supporting undocumented files to be correctly parsed. I started documenting a project with your library but found that when there are no proper docstrings the file gets parsed incorrectly. I basically added a conditional to check when the regex split array was of size 1. In which case there were no docstrings found and there is no documentation yet for the source code.

If you want to see how it works try adding some undocumented javascript code before and after applying this patch.


cachafla added some commits Feb 24, 2011
@cachafla cachafla Support undocumented files. When a file had no documentation at all t…
…he source code was being sent to the left. When parts.length is 1, the only match in the regex is the code itself, a single block gets pushed into the array.
@cachafla cachafla Suport ignoring shebangs d46a32a
@cachafla cachafla Better detection of comments vs blocks. Allow source code not beginni…
…ng with comments to be properly documented.


@evindor evindor closed this Jul 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment