mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
Normalize :: syntax (#5048)
* normalize :: syntax * fixes from code review
This commit is contained in:
committed by
Geoffrey Booth
parent
7dbdca8c54
commit
41185ca7ac
@@ -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.
|
||||
|
||||
@@ -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 isn’t escaped.
|
||||
// octal escape
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user