Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed misspell, withinSignle => withinSingle

  • Loading branch information...
commit 5cd46e0d1c90ca9bdcd45758800eec50a5ea152f 1 parent 1b9e8d0
@mekwall mekwall authored
Showing with 7 additions and 7 deletions.
  1. +7 −7 lib/dox.js
View
14 lib/dox.js
@@ -31,12 +31,12 @@ exports.parseComments = function(js, options){
, buf = ''
, ignore
, withinMultiline = false
- , withinSignle = false
+ , withinSingle = false
, code;
for (var i = 0, len = js.length; i < len; ++i) {
// start comment
- if (!withinMultiline && !withinSignle && '/' == js[i] && '*' == js[i+1]) {
+ if (!withinMultiline && !withinSingle && '/' == js[i] && '*' == js[i+1]) {
// code following previous comment
if (buf.trim().length) {
comment = comments[comments.length - 1];
@@ -50,7 +50,7 @@ exports.parseComments = function(js, options){
withinMultiline = true;
ignore = '!' == js[i];
// end comment
- } else if (withinMultiline && !withinSignle && '*' == js[i] && '/' == js[i+1]) {
+ } else if (withinMultiline && !withinSingle && '*' == js[i] && '/' == js[i+1]) {
i += 2;
buf = buf.replace(/^ *\* ?/gm, '');
var comment = exports.parseComment(buf, options);
@@ -58,12 +58,12 @@ exports.parseComments = function(js, options){
comments.push(comment);
withinMultiline = ignore = false;
buf = '';
- } else if (!withinSignle && !withinMultiline && '/' == js[i] && '/' == js[i+1]) {
+ } else if (!withinSingle && !withinMultiline && '/' == js[i] && '/' == js[i+1]) {
i += 2;
- withinSignle = true;
+ withinSingle = true;
buf += js[i];
- } else if (withinSignle && !withinMultiline && '\n' == js[i]) {
- withinSignle = false;
+ } else if (withinSingle && !withinMultiline && '\n' == js[i]) {
+ withinSingle = false;
buf += js[i];
// buffer comment or code
} else {
Please sign in to comment.
Something went wrong with that request. Please try again.