Various LineTerminator changes
authorAnthony Van de Gejuchte <anthonyvdgent@gmail.com>
Mon, 13 Jun 2016 10:36:47 +0000 (12:36 +0200)
committerAnthony Van de Gejuchte <anthonyvdgent@gmail.com>
Thu, 30 Jun 2016 20:12:50 +0000 (22:12 +0200)
commita97690fc724a7beba77d7fde449ea56676804933
tree10a19039600293238e1b113c78d81ee9219a64d2
parent02c638209ee22816b1324ff0c0f47b27db1336af
Various LineTerminator changes

* Escaped newlines should also produce SyntaxError
* Fix multiline comment parsing and add tests
* Adapt makePredicate to handle \u2028 and \u2029
* Move up nlb check in regex so it's checked before any escape handling
* Change error messages to conform ecma standard
* Find_eol not recornizing \u2028 and \u2029 as line terminator
* Remove \u180e as it is removed in unicode 6.3.0 from the category zs
lib/parse.js
lib/utils.js
test/mocha/comment.js [new file with mode: 0644]
test/mocha/line-endings.js
test/mocha/string-literal.js