Updating for the most recent version of PEG.js

the most recent version(s) of PEG.js expose location information in peg$SyntaxError that declare a start/end range
This commit is contained in:
Thom Bradford 2015-11-23 20:47:34 +01:00
parent ba424f7ee3
commit d2c5200bbf

19
pegjs/pegjs.d.ts vendored
View File

@ -6,11 +6,22 @@
declare module PEG {
function parse(input:string):any;
class SyntaxError {
line:number;
column:number;
offset:number;
interface Location {
line: number;
column: number;
offset: number;
}
interface LocationRange {
start: Location,
end: Location
}
class SyntaxError {
line: number;
column: number;
offset: number;
location: LocationRange;
expected:any[];
found:any;
name:string;