Daniel Tschinder
9eb010da50
Unify reserved word checking and update error messages ( #9402 )
...
* Unify reserved word checking and update error messages
* Fix test
2019-01-31 19:02:32 -08:00
Daniel Tschinder
46ba5940c2
Make yield a contextual keyword ( #9400 )
2019-01-23 14:33:23 -08:00
Daniel Tschinder
178f2d7949
Make let a contextual keyword
2019-01-22 13:12:02 -08:00
Daniel Tschinder
b66d921053
perf: Use === or Set.has instead of array.indexOf for keyword checks
2019-01-17 16:16:30 -08:00
Daniel Tschinder
455e003567
perf: Optimize regex
...
This saves some steps, as the regex parser does not have to backtrack for character classes, but is has to for alternates
2019-01-17 16:15:07 -08:00
Daniel Tschinder
48fd387779
perf: precalculate length
2019-01-17 16:14:56 -08:00
Brian Ng
9b4b436e1f
Fix parsing of newline between 'async' and 'function' ( #8698 )
2018-09-16 22:09:23 -05:00
Justin Ridgewell
edbffda091
Cleanup getLineInfo ( #8540 )
...
Removes an ignore control comment
2018-08-26 13:27:06 -04:00
Justin Ridgewell
5899940156
Update parser whitespace for clarity ( #8539 )
...
* Update parser whitespace for clarity
Has the nice benefit of not requiring a charCode to String conversion.
* Remove test262 exceptions
Per https://github.com/tc39/ecma262/pull/1218#issuecomment-395340891 ,
ECMA262 follows whatever the latest Unicode version specifies for Zs
Space_Separator category. MONGOLIAN VOWEL SEPARATOR was moved to the Cf
Other_Format category in Unicode 8.
2018-08-25 19:12:38 -04:00
Ger Hobbelt
07c88e6f0b
Use charCodes at more places in the parser ( #8176 )
2018-06-15 13:21:32 +02:00
Mathias Bynens
62eb32677c
ECMAScript follows the latest version of the Unicode Standard. Earlier this week, Unicode v11 was officially released. This patch updates babel-parser to support the new identifier characters. ( #8125 )
...
Ref. https://github.com/tc39/ecma262/issues/1219 .
2018-06-07 21:54:12 +02:00
Chaitanya Kumar Kamatham
daf0ca8680
Rename "babylon" to "@babel/parser" ( #7937 ) 🎉
2018-05-19 00:03:05 -04:00