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.
This commit is contained in:
Cary R 2012-07-09 11:40:38 -07:00
parent a35ca1d70b
commit ea420d94ac
1 changed files with 2 additions and 1 deletions

View File

@ -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; }
<CSTRING>\\\\ |
<CSTRING>\\\" |
<CSTRING>\\` { ECHO; }
<CSTRING>\r\n |