Skip to content

Commit

Permalink
[[FIX]] Do not mark ignore directives as special
Browse files Browse the repository at this point in the history
These directives can be handled by the lexer, so the directive processor
in jshint.js does not need to be aware of their presence.
  • Loading branch information
jugglinmike committed Jul 5, 2015
1 parent 37174ae commit f14c262
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/jshint.js
Original file line number Diff line number Diff line change
Expand Up @@ -605,9 +605,6 @@ var JSHINT = (function() {
state.ignoredLines[nt.line] = true;
removeIgnoredMessages();
break;
case "start":
case "end":
break;
default:
error("E002", nt);
}
Expand Down
2 changes: 2 additions & 0 deletions src/lex.js
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,11 @@ Lexer.prototype = {
switch (options[1]) {
case "start":
self.ignoringLinterErrors = true;
isSpecial = false;
break;
case "end":
self.ignoringLinterErrors = false;
isSpecial = false;
break;
}
}
Expand Down

0 comments on commit f14c262

Please sign in to comment.