summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Parser/tokenizer.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c
index 3bf0fee..9f26840 100644
--- a/Parser/tokenizer.c
+++ b/Parser/tokenizer.c
@@ -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);
}