mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Formalize unary prefix '&' to mean "make ref"
This makes reserved operator parsing more robust and easier to understand. Swift SVN r3884
This commit is contained in:
@@ -90,6 +90,7 @@ PUNCTUATOR(semi, ";")
|
||||
PUNCTUATOR(equal, "=")
|
||||
PUNCTUATOR(ellipsis, "...")
|
||||
|
||||
PUNCTUATOR(make_ref, "&")
|
||||
PUNCTUATOR(arrow, "->")
|
||||
|
||||
#undef KEYWORD
|
||||
|
||||
Reference in New Issue
Block a user