Edit File by line
/home/barbar84/www/wp-inclu.../js/codemirr...
File: jsonlint.js
/* Jison generated parser */
[0] Fix | Delete
var jsonlint = (function(){
[1] Fix | Delete
var parser = {trace: function trace() { },
[2] Fix | Delete
yy: {},
[3] Fix | Delete
symbols_: {"error":2,"JSONString":3,"STRING":4,"JSONNumber":5,"NUMBER":6,"JSONNullLiteral":7,"NULL":8,"JSONBooleanLiteral":9,"TRUE":10,"FALSE":11,"JSONText":12,"JSONValue":13,"EOF":14,"JSONObject":15,"JSONArray":16,"{":17,"}":18,"JSONMemberList":19,"JSONMember":20,":":21,",":22,"[":23,"]":24,"JSONElementList":25,"$accept":0,"$end":1},
[4] Fix | Delete
terminals_: {2:"error",4:"STRING",6:"NUMBER",8:"NULL",10:"TRUE",11:"FALSE",14:"EOF",17:"{",18:"}",21:":",22:",",23:"[",24:"]"},
[5] Fix | Delete
productions_: [0,[3,1],[5,1],[7,1],[9,1],[9,1],[12,2],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[15,2],[15,3],[20,3],[19,1],[19,3],[16,2],[16,3],[25,1],[25,3]],
[6] Fix | Delete
performAction: function anonymous(yytext,yyleng,yylineno,yy,yystate,$$,_$) {
[7] Fix | Delete
[8] Fix | Delete
var $0 = $$.length - 1;
[9] Fix | Delete
switch (yystate) {
[10] Fix | Delete
case 1: // replace escaped characters with actual character
[11] Fix | Delete
this.$ = yytext.replace(/\\(\\|")/g, "$"+"1")
[12] Fix | Delete
.replace(/\\n/g,'\n')
[13] Fix | Delete
.replace(/\\r/g,'\r')
[14] Fix | Delete
.replace(/\\t/g,'\t')
[15] Fix | Delete
.replace(/\\v/g,'\v')
[16] Fix | Delete
.replace(/\\f/g,'\f')
[17] Fix | Delete
.replace(/\\b/g,'\b');
[18] Fix | Delete
[19] Fix | Delete
break;
[20] Fix | Delete
case 2:this.$ = Number(yytext);
[21] Fix | Delete
break;
[22] Fix | Delete
case 3:this.$ = null;
[23] Fix | Delete
break;
[24] Fix | Delete
case 4:this.$ = true;
[25] Fix | Delete
break;
[26] Fix | Delete
case 5:this.$ = false;
[27] Fix | Delete
break;
[28] Fix | Delete
case 6:return this.$ = $$[$0-1];
[29] Fix | Delete
break;
[30] Fix | Delete
case 13:this.$ = {};
[31] Fix | Delete
break;
[32] Fix | Delete
case 14:this.$ = $$[$0-1];
[33] Fix | Delete
break;
[34] Fix | Delete
case 15:this.$ = [$$[$0-2], $$[$0]];
[35] Fix | Delete
break;
[36] Fix | Delete
case 16:this.$ = {}; this.$[$$[$0][0]] = $$[$0][1];
[37] Fix | Delete
break;
[38] Fix | Delete
case 17:this.$ = $$[$0-2]; $$[$0-2][$$[$0][0]] = $$[$0][1];
[39] Fix | Delete
break;
[40] Fix | Delete
case 18:this.$ = [];
[41] Fix | Delete
break;
[42] Fix | Delete
case 19:this.$ = $$[$0-1];
[43] Fix | Delete
break;
[44] Fix | Delete
case 20:this.$ = [$$[$0]];
[45] Fix | Delete
break;
[46] Fix | Delete
case 21:this.$ = $$[$0-2]; $$[$0-2].push($$[$0]);
[47] Fix | Delete
break;
[48] Fix | Delete
}
[49] Fix | Delete
},
[50] Fix | Delete
table: [{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],12:1,13:2,15:7,16:8,17:[1,14],23:[1,15]},{1:[3]},{14:[1,16]},{14:[2,7],18:[2,7],22:[2,7],24:[2,7]},{14:[2,8],18:[2,8],22:[2,8],24:[2,8]},{14:[2,9],18:[2,9],22:[2,9],24:[2,9]},{14:[2,10],18:[2,10],22:[2,10],24:[2,10]},{14:[2,11],18:[2,11],22:[2,11],24:[2,11]},{14:[2,12],18:[2,12],22:[2,12],24:[2,12]},{14:[2,3],18:[2,3],22:[2,3],24:[2,3]},{14:[2,4],18:[2,4],22:[2,4],24:[2,4]},{14:[2,5],18:[2,5],22:[2,5],24:[2,5]},{14:[2,1],18:[2,1],21:[2,1],22:[2,1],24:[2,1]},{14:[2,2],18:[2,2],22:[2,2],24:[2,2]},{3:20,4:[1,12],18:[1,17],19:18,20:19},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:23,15:7,16:8,17:[1,14],23:[1,15],24:[1,21],25:22},{1:[2,6]},{14:[2,13],18:[2,13],22:[2,13],24:[2,13]},{18:[1,24],22:[1,25]},{18:[2,16],22:[2,16]},{21:[1,26]},{14:[2,18],18:[2,18],22:[2,18],24:[2,18]},{22:[1,28],24:[1,27]},{22:[2,20],24:[2,20]},{14:[2,14],18:[2,14],22:[2,14],24:[2,14]},{3:20,4:[1,12],20:29},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:30,15:7,16:8,17:[1,14],23:[1,15]},{14:[2,19],18:[2,19],22:[2,19],24:[2,19]},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:31,15:7,16:8,17:[1,14],23:[1,15]},{18:[2,17],22:[2,17]},{18:[2,15],22:[2,15]},{22:[2,21],24:[2,21]}],
[51] Fix | Delete
defaultActions: {16:[2,6]},
[52] Fix | Delete
parseError: function parseError(str, hash) {
[53] Fix | Delete
throw new Error(str);
[54] Fix | Delete
},
[55] Fix | Delete
parse: function parse(input) {
[56] Fix | Delete
var self = this,
[57] Fix | Delete
stack = [0],
[58] Fix | Delete
vstack = [null], // semantic value stack
[59] Fix | Delete
lstack = [], // location stack
[60] Fix | Delete
table = this.table,
[61] Fix | Delete
yytext = '',
[62] Fix | Delete
yylineno = 0,
[63] Fix | Delete
yyleng = 0,
[64] Fix | Delete
recovering = 0,
[65] Fix | Delete
TERROR = 2,
[66] Fix | Delete
EOF = 1;
[67] Fix | Delete
[68] Fix | Delete
//this.reductionCount = this.shiftCount = 0;
[69] Fix | Delete
[70] Fix | Delete
this.lexer.setInput(input);
[71] Fix | Delete
this.lexer.yy = this.yy;
[72] Fix | Delete
this.yy.lexer = this.lexer;
[73] Fix | Delete
if (typeof this.lexer.yylloc == 'undefined')
[74] Fix | Delete
this.lexer.yylloc = {};
[75] Fix | Delete
var yyloc = this.lexer.yylloc;
[76] Fix | Delete
lstack.push(yyloc);
[77] Fix | Delete
[78] Fix | Delete
if (typeof this.yy.parseError === 'function')
[79] Fix | Delete
this.parseError = this.yy.parseError;
[80] Fix | Delete
[81] Fix | Delete
function popStack (n) {
[82] Fix | Delete
stack.length = stack.length - 2*n;
[83] Fix | Delete
vstack.length = vstack.length - n;
[84] Fix | Delete
lstack.length = lstack.length - n;
[85] Fix | Delete
}
[86] Fix | Delete
[87] Fix | Delete
function lex() {
[88] Fix | Delete
var token;
[89] Fix | Delete
token = self.lexer.lex() || 1; // $end = 1
[90] Fix | Delete
// if token isn't its numeric value, convert
[91] Fix | Delete
if (typeof token !== 'number') {
[92] Fix | Delete
token = self.symbols_[token] || token;
[93] Fix | Delete
}
[94] Fix | Delete
return token;
[95] Fix | Delete
}
[96] Fix | Delete
[97] Fix | Delete
var symbol, preErrorSymbol, state, action, a, r, yyval={},p,len,newState, expected;
[98] Fix | Delete
while (true) {
[99] Fix | Delete
// retreive state number from top of stack
[100] Fix | Delete
state = stack[stack.length-1];
[101] Fix | Delete
[102] Fix | Delete
// use default actions if available
[103] Fix | Delete
if (this.defaultActions[state]) {
[104] Fix | Delete
action = this.defaultActions[state];
[105] Fix | Delete
} else {
[106] Fix | Delete
if (symbol == null)
[107] Fix | Delete
symbol = lex();
[108] Fix | Delete
// read action for current state and first input
[109] Fix | Delete
action = table[state] && table[state][symbol];
[110] Fix | Delete
}
[111] Fix | Delete
[112] Fix | Delete
// handle parse error
[113] Fix | Delete
_handle_error:
[114] Fix | Delete
if (typeof action === 'undefined' || !action.length || !action[0]) {
[115] Fix | Delete
[116] Fix | Delete
if (!recovering) {
[117] Fix | Delete
// Report error
[118] Fix | Delete
expected = [];
[119] Fix | Delete
for (p in table[state]) if (this.terminals_[p] && p > 2) {
[120] Fix | Delete
expected.push("'"+this.terminals_[p]+"'");
[121] Fix | Delete
}
[122] Fix | Delete
var errStr = '';
[123] Fix | Delete
if (this.lexer.showPosition) {
[124] Fix | Delete
errStr = 'Parse error on line '+(yylineno+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+expected.join(', ') + ", got '" + this.terminals_[symbol]+ "'";
[125] Fix | Delete
} else {
[126] Fix | Delete
errStr = 'Parse error on line '+(yylineno+1)+": Unexpected " +
[127] Fix | Delete
(symbol == 1 /*EOF*/ ? "end of input" :
[128] Fix | Delete
("'"+(this.terminals_[symbol] || symbol)+"'"));
[129] Fix | Delete
}
[130] Fix | Delete
this.parseError(errStr,
[131] Fix | Delete
{text: this.lexer.match, token: this.terminals_[symbol] || symbol, line: this.lexer.yylineno, loc: yyloc, expected: expected});
[132] Fix | Delete
}
[133] Fix | Delete
[134] Fix | Delete
// just recovered from another error
[135] Fix | Delete
if (recovering == 3) {
[136] Fix | Delete
if (symbol == EOF) {
[137] Fix | Delete
throw new Error(errStr || 'Parsing halted.');
[138] Fix | Delete
}
[139] Fix | Delete
[140] Fix | Delete
// discard current lookahead and grab another
[141] Fix | Delete
yyleng = this.lexer.yyleng;
[142] Fix | Delete
yytext = this.lexer.yytext;
[143] Fix | Delete
yylineno = this.lexer.yylineno;
[144] Fix | Delete
yyloc = this.lexer.yylloc;
[145] Fix | Delete
symbol = lex();
[146] Fix | Delete
}
[147] Fix | Delete
[148] Fix | Delete
// try to recover from error
[149] Fix | Delete
while (1) {
[150] Fix | Delete
// check for error recovery rule in this state
[151] Fix | Delete
if ((TERROR.toString()) in table[state]) {
[152] Fix | Delete
break;
[153] Fix | Delete
}
[154] Fix | Delete
if (state == 0) {
[155] Fix | Delete
throw new Error(errStr || 'Parsing halted.');
[156] Fix | Delete
}
[157] Fix | Delete
popStack(1);
[158] Fix | Delete
state = stack[stack.length-1];
[159] Fix | Delete
}
[160] Fix | Delete
[161] Fix | Delete
preErrorSymbol = symbol; // save the lookahead token
[162] Fix | Delete
symbol = TERROR; // insert generic error symbol as new lookahead
[163] Fix | Delete
state = stack[stack.length-1];
[164] Fix | Delete
action = table[state] && table[state][TERROR];
[165] Fix | Delete
recovering = 3; // allow 3 real symbols to be shifted before reporting a new error
[166] Fix | Delete
}
[167] Fix | Delete
[168] Fix | Delete
// this shouldn't happen, unless resolve defaults are off
[169] Fix | Delete
if (action[0] instanceof Array && action.length > 1) {
[170] Fix | Delete
throw new Error('Parse Error: multiple actions possible at state: '+state+', token: '+symbol);
[171] Fix | Delete
}
[172] Fix | Delete
[173] Fix | Delete
switch (action[0]) {
[174] Fix | Delete
[175] Fix | Delete
case 1: // shift
[176] Fix | Delete
//this.shiftCount++;
[177] Fix | Delete
[178] Fix | Delete
stack.push(symbol);
[179] Fix | Delete
vstack.push(this.lexer.yytext);
[180] Fix | Delete
lstack.push(this.lexer.yylloc);
[181] Fix | Delete
stack.push(action[1]); // push state
[182] Fix | Delete
symbol = null;
[183] Fix | Delete
if (!preErrorSymbol) { // normal execution/no error
[184] Fix | Delete
yyleng = this.lexer.yyleng;
[185] Fix | Delete
yytext = this.lexer.yytext;
[186] Fix | Delete
yylineno = this.lexer.yylineno;
[187] Fix | Delete
yyloc = this.lexer.yylloc;
[188] Fix | Delete
if (recovering > 0)
[189] Fix | Delete
recovering--;
[190] Fix | Delete
} else { // error just occurred, resume old lookahead f/ before error
[191] Fix | Delete
symbol = preErrorSymbol;
[192] Fix | Delete
preErrorSymbol = null;
[193] Fix | Delete
}
[194] Fix | Delete
break;
[195] Fix | Delete
[196] Fix | Delete
case 2: // reduce
[197] Fix | Delete
//this.reductionCount++;
[198] Fix | Delete
[199] Fix | Delete
len = this.productions_[action[1]][1];
[200] Fix | Delete
[201] Fix | Delete
// perform semantic action
[202] Fix | Delete
yyval.$ = vstack[vstack.length-len]; // default to $$ = $1
[203] Fix | Delete
// default location, uses first token for firsts, last for lasts
[204] Fix | Delete
yyval._$ = {
[205] Fix | Delete
first_line: lstack[lstack.length-(len||1)].first_line,
[206] Fix | Delete
last_line: lstack[lstack.length-1].last_line,
[207] Fix | Delete
first_column: lstack[lstack.length-(len||1)].first_column,
[208] Fix | Delete
last_column: lstack[lstack.length-1].last_column
[209] Fix | Delete
};
[210] Fix | Delete
r = this.performAction.call(yyval, yytext, yyleng, yylineno, this.yy, action[1], vstack, lstack);
[211] Fix | Delete
[212] Fix | Delete
if (typeof r !== 'undefined') {
[213] Fix | Delete
return r;
[214] Fix | Delete
}
[215] Fix | Delete
[216] Fix | Delete
// pop off stack
[217] Fix | Delete
if (len) {
[218] Fix | Delete
stack = stack.slice(0,-1*len*2);
[219] Fix | Delete
vstack = vstack.slice(0, -1*len);
[220] Fix | Delete
lstack = lstack.slice(0, -1*len);
[221] Fix | Delete
}
[222] Fix | Delete
[223] Fix | Delete
stack.push(this.productions_[action[1]][0]); // push nonterminal (reduce)
[224] Fix | Delete
vstack.push(yyval.$);
[225] Fix | Delete
lstack.push(yyval._$);
[226] Fix | Delete
// goto new state = table[STATE][NONTERMINAL]
[227] Fix | Delete
newState = table[stack[stack.length-2]][stack[stack.length-1]];
[228] Fix | Delete
stack.push(newState);
[229] Fix | Delete
break;
[230] Fix | Delete
[231] Fix | Delete
case 3: // accept
[232] Fix | Delete
return true;
[233] Fix | Delete
}
[234] Fix | Delete
[235] Fix | Delete
}
[236] Fix | Delete
[237] Fix | Delete
return true;
[238] Fix | Delete
}};
[239] Fix | Delete
/* Jison generated lexer */
[240] Fix | Delete
var lexer = (function(){
[241] Fix | Delete
var lexer = ({EOF:1,
[242] Fix | Delete
parseError:function parseError(str, hash) {
[243] Fix | Delete
if (this.yy.parseError) {
[244] Fix | Delete
this.yy.parseError(str, hash);
[245] Fix | Delete
} else {
[246] Fix | Delete
throw new Error(str);
[247] Fix | Delete
}
[248] Fix | Delete
},
[249] Fix | Delete
setInput:function (input) {
[250] Fix | Delete
this._input = input;
[251] Fix | Delete
this._more = this._less = this.done = false;
[252] Fix | Delete
this.yylineno = this.yyleng = 0;
[253] Fix | Delete
this.yytext = this.matched = this.match = '';
[254] Fix | Delete
this.conditionStack = ['INITIAL'];
[255] Fix | Delete
this.yylloc = {first_line:1,first_column:0,last_line:1,last_column:0};
[256] Fix | Delete
return this;
[257] Fix | Delete
},
[258] Fix | Delete
input:function () {
[259] Fix | Delete
var ch = this._input[0];
[260] Fix | Delete
this.yytext+=ch;
[261] Fix | Delete
this.yyleng++;
[262] Fix | Delete
this.match+=ch;
[263] Fix | Delete
this.matched+=ch;
[264] Fix | Delete
var lines = ch.match(/\n/);
[265] Fix | Delete
if (lines) this.yylineno++;
[266] Fix | Delete
this._input = this._input.slice(1);
[267] Fix | Delete
return ch;
[268] Fix | Delete
},
[269] Fix | Delete
unput:function (ch) {
[270] Fix | Delete
this._input = ch + this._input;
[271] Fix | Delete
return this;
[272] Fix | Delete
},
[273] Fix | Delete
more:function () {
[274] Fix | Delete
this._more = true;
[275] Fix | Delete
return this;
[276] Fix | Delete
},
[277] Fix | Delete
less:function (n) {
[278] Fix | Delete
this._input = this.match.slice(n) + this._input;
[279] Fix | Delete
},
[280] Fix | Delete
pastInput:function () {
[281] Fix | Delete
var past = this.matched.substr(0, this.matched.length - this.match.length);
[282] Fix | Delete
return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\n/g, "");
[283] Fix | Delete
},
[284] Fix | Delete
upcomingInput:function () {
[285] Fix | Delete
var next = this.match;
[286] Fix | Delete
if (next.length < 20) {
[287] Fix | Delete
next += this._input.substr(0, 20-next.length);
[288] Fix | Delete
}
[289] Fix | Delete
return (next.substr(0,20)+(next.length > 20 ? '...':'')).replace(/\n/g, "");
[290] Fix | Delete
},
[291] Fix | Delete
showPosition:function () {
[292] Fix | Delete
var pre = this.pastInput();
[293] Fix | Delete
var c = new Array(pre.length + 1).join("-");
[294] Fix | Delete
return pre + this.upcomingInput() + "\n" + c+"^";
[295] Fix | Delete
},
[296] Fix | Delete
next:function () {
[297] Fix | Delete
if (this.done) {
[298] Fix | Delete
return this.EOF;
[299] Fix | Delete
}
[300] Fix | Delete
if (!this._input) this.done = true;
[301] Fix | Delete
[302] Fix | Delete
var token,
[303] Fix | Delete
match,
[304] Fix | Delete
tempMatch,
[305] Fix | Delete
index,
[306] Fix | Delete
col,
[307] Fix | Delete
lines;
[308] Fix | Delete
if (!this._more) {
[309] Fix | Delete
this.yytext = '';
[310] Fix | Delete
this.match = '';
[311] Fix | Delete
}
[312] Fix | Delete
var rules = this._currentRules();
[313] Fix | Delete
for (var i=0;i < rules.length; i++) {
[314] Fix | Delete
tempMatch = this._input.match(this.rules[rules[i]]);
[315] Fix | Delete
if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
[316] Fix | Delete
match = tempMatch;
[317] Fix | Delete
index = i;
[318] Fix | Delete
if (!this.options.flex) break;
[319] Fix | Delete
}
[320] Fix | Delete
}
[321] Fix | Delete
if (match) {
[322] Fix | Delete
lines = match[0].match(/\n.*/g);
[323] Fix | Delete
if (lines) this.yylineno += lines.length;
[324] Fix | Delete
this.yylloc = {first_line: this.yylloc.last_line,
[325] Fix | Delete
last_line: this.yylineno+1,
[326] Fix | Delete
first_column: this.yylloc.last_column,
[327] Fix | Delete
last_column: lines ? lines[lines.length-1].length-1 : this.yylloc.last_column + match[0].length}
[328] Fix | Delete
this.yytext += match[0];
[329] Fix | Delete
this.match += match[0];
[330] Fix | Delete
this.yyleng = this.yytext.length;
[331] Fix | Delete
this._more = false;
[332] Fix | Delete
this._input = this._input.slice(match[0].length);
[333] Fix | Delete
this.matched += match[0];
[334] Fix | Delete
token = this.performAction.call(this, this.yy, this, rules[index],this.conditionStack[this.conditionStack.length-1]);
[335] Fix | Delete
if (this.done && this._input) this.done = false;
[336] Fix | Delete
if (token) return token;
[337] Fix | Delete
else return;
[338] Fix | Delete
}
[339] Fix | Delete
if (this._input === "") {
[340] Fix | Delete
return this.EOF;
[341] Fix | Delete
} else {
[342] Fix | Delete
this.parseError('Lexical error on line '+(this.yylineno+1)+'. Unrecognized text.\n'+this.showPosition(),
[343] Fix | Delete
{text: "", token: null, line: this.yylineno});
[344] Fix | Delete
}
[345] Fix | Delete
},
[346] Fix | Delete
lex:function lex() {
[347] Fix | Delete
var r = this.next();
[348] Fix | Delete
if (typeof r !== 'undefined') {
[349] Fix | Delete
return r;
[350] Fix | Delete
} else {
[351] Fix | Delete
return this.lex();
[352] Fix | Delete
}
[353] Fix | Delete
},
[354] Fix | Delete
begin:function begin(condition) {
[355] Fix | Delete
this.conditionStack.push(condition);
[356] Fix | Delete
},
[357] Fix | Delete
popState:function popState() {
[358] Fix | Delete
return this.conditionStack.pop();
[359] Fix | Delete
},
[360] Fix | Delete
_currentRules:function _currentRules() {
[361] Fix | Delete
return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;
[362] Fix | Delete
},
[363] Fix | Delete
topState:function () {
[364] Fix | Delete
return this.conditionStack[this.conditionStack.length-2];
[365] Fix | Delete
},
[366] Fix | Delete
pushState:function begin(condition) {
[367] Fix | Delete
this.begin(condition);
[368] Fix | Delete
}});
[369] Fix | Delete
lexer.options = {};
[370] Fix | Delete
lexer.performAction = function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {
[371] Fix | Delete
[372] Fix | Delete
var YYSTATE=YY_START
[373] Fix | Delete
switch($avoiding_name_collisions) {
[374] Fix | Delete
case 0:/* skip whitespace */
[375] Fix | Delete
break;
[376] Fix | Delete
case 1:return 6
[377] Fix | Delete
break;
[378] Fix | Delete
case 2:yy_.yytext = yy_.yytext.substr(1,yy_.yyleng-2); return 4
[379] Fix | Delete
break;
[380] Fix | Delete
case 3:return 17
[381] Fix | Delete
break;
[382] Fix | Delete
case 4:return 18
[383] Fix | Delete
break;
[384] Fix | Delete
case 5:return 23
[385] Fix | Delete
break;
[386] Fix | Delete
case 6:return 24
[387] Fix | Delete
break;
[388] Fix | Delete
case 7:return 22
[389] Fix | Delete
break;
[390] Fix | Delete
case 8:return 21
[391] Fix | Delete
break;
[392] Fix | Delete
case 9:return 10
[393] Fix | Delete
break;
[394] Fix | Delete
case 10:return 11
[395] Fix | Delete
break;
[396] Fix | Delete
case 11:return 8
[397] Fix | Delete
break;
[398] Fix | Delete
case 12:return 14
[399] Fix | Delete
break;
[400] Fix | Delete
case 13:return 'INVALID'
[401] Fix | Delete
break;
[402] Fix | Delete
}
[403] Fix | Delete
};
[404] Fix | Delete
lexer.rules = [/^(?:\s+)/,/^(?:(-?([0-9]|[1-9][0-9]+))(\.[0-9]+)?([eE][-+]?[0-9]+)?\b)/,/^(?:"(?:\\[\\"bfnrt/]|\\u[a-fA-F0-9]{4}|[^\\\0-\x09\x0a-\x1f"])*")/,/^(?:\{)/,/^(?:\})/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?::)/,/^(?:true\b)/,/^(?:false\b)/,/^(?:null\b)/,/^(?:$)/,/^(?:.)/];
[405] Fix | Delete
lexer.conditions = {"INITIAL":{"rules":[0,1,2,3,4,5,6,7,8,9,10,11,12,13],"inclusive":true}};
[406] Fix | Delete
[407] Fix | Delete
[408] Fix | Delete
;
[409] Fix | Delete
return lexer;})()
[410] Fix | Delete
parser.lexer = lexer;
[411] Fix | Delete
return parser;
[412] Fix | Delete
})();
[413] Fix | Delete
if (typeof require !== 'undefined' && typeof exports !== 'undefined') {
[414] Fix | Delete
exports.parser = jsonlint;
[415] Fix | Delete
exports.parse = function () { return jsonlint.parse.apply(jsonlint, arguments); }
[416] Fix | Delete
exports.main = function commonjsMain(args) {
[417] Fix | Delete
if (!args[1])
[418] Fix | Delete
throw new Error('Usage: '+args[0]+' FILE');
[419] Fix | Delete
if (typeof process !== 'undefined') {
[420] Fix | Delete
var source = require('fs').readFileSync(require('path').join(process.cwd(), args[1]), "utf8");
[421] Fix | Delete
} else {
[422] Fix | Delete
var cwd = require("file").path(require("file").cwd());
[423] Fix | Delete
var source = cwd.join(args[1]).read({charset: "utf-8"});
[424] Fix | Delete
}
[425] Fix | Delete
return exports.parser.parse(source);
[426] Fix | Delete
}
[427] Fix | Delete
if (typeof module !== 'undefined' && require.main === module) {
[428] Fix | Delete
exports.main(typeof process !== 'undefined' ? process.argv.slice(1) : require("system").args);
[429] Fix | Delete
}
[430] Fix | Delete
}
[431] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function