mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
SE-0022: Implement parsing, AST, and semantic analysis for #selector.
This commit is contained in:
@@ -1619,6 +1619,11 @@ Restart:
|
||||
return formToken(tok::pound_available, TokStart);
|
||||
}
|
||||
|
||||
if (getSubstring(TokStart + 1, 8).equals("selector")) {
|
||||
CurPtr += 8;
|
||||
return formToken(tok::pound_selector, TokStart);
|
||||
}
|
||||
|
||||
// Allow a hashbang #! line at the beginning of the file.
|
||||
if (CurPtr - 1 == BufferStart && *CurPtr == '!') {
|
||||
CurPtr--;
|
||||
|
||||
Reference in New Issue
Block a user