Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

.parseCodeContext() fails on code using tab #76

Closed
jeromeetienne opened this Issue · 1 comment

3 participants

@jeromeetienne

exports.parseCodeContext dont support tab. see here https://github.com/visionmedia/dox/blob/master/lib/dox.js#L239

bug: In all the regexp, all white char MUST be space and can not be tab. for example at https://github.com/visionmedia/dox/blob/master/lib/dox.js#L239

  // function statement
  if (/^function (\w+) *\(/.exec(str)) {

so codes with tab and no space wont be parsed.

possible solution: add tab as a possibility in all regexp

@tj
Owner
tj commented

yeah [ \t]* should be fine

@evindor evindor closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.