Better fix for escaped quotes!

date	2001.08.24.20.22.00;	author rmoore1;	state Exp;
This commit is contained in:
aystarik 2005-06-29 20:44:23 +00:00
parent 6d96601310
commit 8a76bdd5d3

View File

@ -2,7 +2,7 @@
/******************************************************************************
*
* Module Name: asconvrt - Source conversion code
* $Revision: 1.21 $
* $Revision: 1.22 $
*
*****************************************************************************/
@ -698,20 +698,24 @@ AsLowerCaseIdentifiers (
if (SubBuffer[0] == '\"')
{
SubBuffer++;
/* Find the closing quote */
while (1)
{
SubBuffer = AsSkipPastChar (SubBuffer, '\"');
if (!SubBuffer)
/* Ignore escaped quote characters */
if (SubBuffer[0] == '\\')
{
return;
SubBuffer++;
}
/* Handle escaped quotes */
if (*(SubBuffer-2) != '\\')
else if (SubBuffer[0] == '\"')
{
SubBuffer++;
break;
}
SubBuffer++;
}
}