Skip to content

Commit

Permalink
Don't check for white-space when parsing JSON.
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Kovalyov committed Mar 26, 2014
1 parent 12147ed commit 7320df1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions src/jshint.js
Original file line number Diff line number Diff line change
Expand Up @@ -4386,7 +4386,6 @@ var JSHINT = (function () {
// Parse JSON

function jsonValue() {

function jsonObject() {
var o = {}, t = state.tokens.next;
advance("{");
Expand Down Expand Up @@ -4462,9 +4461,6 @@ var JSHINT = (function () {
break;
case "-":
advance("-");
if (state.tokens.curr.character !== state.tokens.next.from) {
warning("W011", state.tokens.curr);
}
advance("(number)");
break;
default:
Expand Down
2 changes: 1 addition & 1 deletion src/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ var warnings = {
W008: "A leading decimal point can be confused with a dot: '{a}'.",
W009: "The array literal notation [] is preferable.",
W010: "The object literal notation {} is preferable.",
W011: "Unexpected space after '{a}'.",
W011: null,
W012: null,
W013: null,
W014: "Bad line breaking before '{a}'.",
Expand Down

0 comments on commit 7320df1

Please sign in to comment.