Browse files

Fixed misspell, withinSignle => withinSingle

  • Loading branch information...
1 parent 1b9e8d0 commit 5cd46e0d1c90ca9bdcd45758800eec50a5ea152f @mekwall mekwall committed Jul 24, 2012
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,20 +50,20 @@ 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);
comment.ignore = ignore;
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 {

0 comments on commit 5cd46e0

Please sign in to comment.