From 2bf8f54273a45e770318d6a7b161ecc5dc9782a2 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 10 Jan 1999 22:26:56 +0000 Subject: Make ' work as string quote. svn path=/trunk/; revision=2352 --- rcfile_l.l | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'rcfile_l.l') diff --git a/rcfile_l.l b/rcfile_l.l index d1f1c36f..d86f790b 100644 --- a/rcfile_l.l +++ b/rcfile_l.l @@ -125,6 +125,14 @@ remote(folder)? { \"[^\"]*\" { char buf[MSGBUFSIZE]; + yytext[strlen(yytext)-1] = '\0'; + escapes(yytext+1, buf); + yylval.sval = (char *) xstrdup(buf); + return STRING; + } +\'[^\']*\' { + char buf[MSGBUFSIZE]; + yytext[strlen(yytext)-1] = '\0'; escapes(yytext+1, buf); yylval.sval = (char *) xstrdup(buf); -- cgit v1.2.3