Kaydet (Commit) 5026cb4d authored tarafından Guido van Rossum's avatar Guido van Rossum

Now that the string-sig has settled on r"obin" strings, restrict the

<letter><string> notation to 'r' and 'R'.
üst c474deaa
......@@ -541,9 +541,13 @@ tok_get(tok, p_start, p_end)
/* Identifier (most frequent token!) */
if (isalpha(c) || c == '_') {
c = tok_nextc(tok);
if (c == '"' || c == '\'')
goto letter_quote;
switch (c) {
case 'r':
case 'R':
c = tok_nextc(tok);
if (c == '"' || c == '\'')
goto letter_quote;
}
while (isalnum(c) || c == '_') {
c = tok_nextc(tok);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment