aboutsummaryrefslogtreecommitdiffstats
path: root/rcfile_l.l
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1999-01-10 22:26:56 +0000
committerEric S. Raymond <esr@thyrsus.com>1999-01-10 22:26:56 +0000
commit2bf8f54273a45e770318d6a7b161ecc5dc9782a2 (patch)
tree73927d40dd60bf423ad9f86fa9e1ce2d75671b77 /rcfile_l.l
parent0d1602f81764904fbd0daca7af8bf0d0a0730d89 (diff)
downloadfetchmail-2bf8f54273a45e770318d6a7b161ecc5dc9782a2.tar.gz
fetchmail-2bf8f54273a45e770318d6a7b161ecc5dc9782a2.tar.bz2
fetchmail-2bf8f54273a45e770318d6a7b161ecc5dc9782a2.zip
Make ' work as string quote.
svn path=/trunk/; revision=2352
Diffstat (limited to 'rcfile_l.l')
-rw-r--r--rcfile_l.l8
1 files changed, 8 insertions, 0 deletions
diff --git a/rcfile_l.l b/rcfile_l.l
index d1f1c36f..d86f790b 100644
--- a/rcfile_l.l
+++ b/rcfile_l.l
@@ -130,6 +130,14 @@ remote(folder)? {
yylval.sval = (char *) xstrdup(buf);
return STRING;
}
+\'[^\']*\' {
+ char buf[MSGBUFSIZE];
+
+ yytext[strlen(yytext)-1] = '\0';
+ escapes(yytext+1, buf);
+ yylval.sval = (char *) xstrdup(buf);
+ return STRING;
+ }
[^=;:, \t\r\n]+ {
char buf[MSGBUFSIZE];