Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [wtp-dev] JSDT Parser

Eugene,

I'm not a big expert with esprima, but do you use tolerant option like explained at http://esprima.org/doc/ ?

2016-03-12 10:25 GMT+01:00 Eugene Melekhov <emvv@xxxxxxx>:
Angelo,

One more thing about parser tolerance. esprima for example throws an exception parsing this "relatively simple"
declarations:

//function foo(a, b {}

//function foo(a, b, c,) {}

//function foo(a, b, {} {}


> Yes sure, but it seems that Shift doesn't support tolerant parser which is very required for a JS editor. See https://github.com/shapesecurity/shift-java/issues/93


--
Eugene Melekhov

_______________________________________________
wtp-dev mailing list
wtp-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/wtp-dev


Back to the top