Normalize :: syntax (#5048)

* normalize :: syntax

* fixes from code review
This commit is contained in:
Julian Rosse
2018-05-13 15:41:43 -04:00
committed by Geoffrey Booth
parent 7dbdca8c54
commit 41185ca7ac
7 changed files with 181 additions and 156 deletions

View File

@@ -603,6 +603,11 @@
function() {
return new Access(new PropertyName('prototype'));
}),
o('?::',
function() {
return new Access(new PropertyName('prototype'),
'soak');
}),
o('Index')
],
// Indexing into an object or array using bracket notation.

View File

@@ -1634,7 +1634,7 @@
// Other regexes.
HERECOMMENT_ILLEGAL = /\*\//;
LINE_CONTINUER = /^\s*(?:,|\??\.(?![.\d])|::)/;
LINE_CONTINUER = /^\s*(?:,|\??\.(?![.\d])|\??::)/;
STRING_INVALID_ESCAPE = /((?:^|[^\\])(?:\\\\)*)\\(?:(0[0-7]|[1-7])|(x(?![\da-fA-F]{2}).{0,2})|(u\{(?![\da-fA-F]{1,}\})[^}]*\}?)|(u(?!\{|[\da-fA-F]{4}).{0,4}))/; // Make sure the escape isnt escaped.
// octal escape

File diff suppressed because one or more lines are too long