aboutsummaryrefslogtreecommitdiffstats
path: root/rcfile_l.l
diff options
context:
space:
mode:
Diffstat (limited to 'rcfile_l.l')
-rw-r--r--rcfile_l.l13
1 files changed, 11 insertions, 2 deletions
diff --git a/rcfile_l.l b/rcfile_l.l
index 000b10d9..99558152 100644
--- a/rcfile_l.l
+++ b/rcfile_l.l
@@ -71,11 +71,20 @@ options {/* EMPTY */}
[0-9]+ { yylval.number = atoi(yytext); return NUMBER; }
\"[^\"]*\" {
+ char buf[POPBUFSIZE];
+
yytext[strlen(yytext)-1] = '\0';
- yylval.sval = (char *) strdup(yytext+1);
+ escapes(yytext+1, buf);
+ yylval.sval = (char *) strdup(buf);
+ return STRING;
+ }
+[^;:, \t\r\n]+ {
+ char buf[POPBUFSIZE];
+
+ escapes(yytext, buf);
+ yylval.sval = (char *) strdup(buf);
return STRING;
}
-[^;:, \t\r\n]+ { yylval.sval = (char *) strdup(yytext); return STRING; }
[ \t\r]+ ; /* whitespace */