Skip to content

Commit

Permalink
Bad HTML string?
Browse files Browse the repository at this point in the history
  • Loading branch information
douglascrockford committed Feb 3, 2012
1 parent 2c83b69 commit 3814224
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions jslint.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// jslint.js
// 2012-01-29
// 2012-02-03

// Copyright (c) 2002 Douglas Crockford (www.JSLint.com)

Expand Down Expand Up @@ -2298,18 +2298,18 @@ klass: do {
open: true,
was: indent
};
} else if (mode === 'statement') {
indent = {
at: indent.at,
open: true,
was: indent
};
} else if (!indent) {
indent = {
at: 1,
mode: 'statement',
open: true
};
} else if (mode === 'statement') {
indent = {
at: indent.at,
open: true,
was: indent
};
} else {
open = mode === 'var' || next_token.line !== token.line;
indent = {
Expand Down Expand Up @@ -4486,7 +4486,7 @@ klass: do {
});

disrupt_stmt('return', function () {
if (funct === global_funct) {
if (funct === global_funct && xmode !== 'scriptstring') {
warn('unexpected_a', this);
}
this.arity = 'statement';
Expand Down Expand Up @@ -6364,7 +6364,7 @@ klass: do {
};
itself.jslint = itself;

itself.edition = '2012-01-29';
itself.edition = '2012-02-03';

return itself;
}());

0 comments on commit 3814224

Please sign in to comment.