From ea420d94acc0fb5264a3a72e32234724bd3fd985 Mon Sep 17 00:00:00 2001 From: Cary R Date: Mon, 9 Jul 2012 11:40:38 -0700 Subject: [PATCH] Fix for pr3539372. This patch matches what was proposed in pr3539372 to fix ivlpp to correctly handle an escapped \ at the end of a string. --- ivlpp/lexor.lex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ivlpp/lexor.lex b/ivlpp/lexor.lex index 348f78ba3..39d9e894b 100644 --- a/ivlpp/lexor.lex +++ b/ivlpp/lexor.lex @@ -1,7 +1,7 @@ %option prefix="yy" %{ /* - * Copyright (c) 1999-2010 Stephen Williams (steve@icarus.com) + * Copyright (c) 1999-2012 Stephen Williams (steve@icarus.com) * * This source code is free software; you can redistribute it * and/or modify it in source code form under the terms of the GNU @@ -260,6 +260,7 @@ keywords (include|define|undef|ifdef|ifndef|else|elseif|endif) * string. */ \" { string_enter = YY_START; BEGIN(CSTRING); ECHO; } +\\\\ | \\\" | \\` { ECHO; } \r\n |