In a SIL function body, lex %42 as a new sil_local_name token.

Swift SVN r5261
This commit is contained in:
Chris Lattner
2013-05-22 05:34:18 +00:00
parent 12c7d01708
commit 98d708d1fc
4 changed files with 22 additions and 6 deletions

View File

@@ -35,6 +35,7 @@ enum class tok {
floating_literal,
string_literal,
character_literal,
sil_local_name, // %42 in SIL mode.
#define KEYWORD(X) kw_ ## X,
#define PUNCTUATOR(X, Y) X,

View File

@@ -102,6 +102,7 @@ PUNCTUATOR(question, "?")
PUNCTUATOR(sil_at_sign, "@") // Only in SIL mode.
PUNCTUATOR(sil_dollar, "$") // Only in SIL mode.
#undef KEYWORD
#undef IDENTIFIER_KEYWORD
#undef PUNCTUATOR