From ed2cb380cd72c4a085d74b4706dc83fc99694c0e Mon Sep 17 00:00:00 2001 From: steve Date: Fri, 9 Feb 2007 05:29:24 +0000 Subject: [PATCH] fix lexical handling of slashes in strings. --- lexor.lex | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lexor.lex b/lexor.lex index ca782727c..4fcf64567 100644 --- a/lexor.lex +++ b/lexor.lex @@ -21,7 +21,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #ifdef HAVE_CVS_IDENT -#ident "$Id: lexor.lex,v 1.86.2.3 2006/05/08 04:33:35 steve Exp $" +#ident "$Id: lexor.lex,v 1.86.2.4 2007/02/09 05:29:24 steve Exp $" #endif # include "config.h" @@ -162,7 +162,8 @@ W [ \t\b\f\r]+ [}{;:\[\],()#=.@&!?<>%|^~+*/-] { return yytext[0]; } \" { BEGIN(CSTRING); } -\\\" { yymore(); } +\\\\ { yymore(); /* Catch \\, which is a \ escaping itself */ } +\\\" { yymore(); /* Catch \", which is an escaped quote */ } \n { BEGIN(0); yylval.text = strdup(yytext); VLerror(yylloc, "Missing close quote of string.");