mirror of
https://github.com/acpica/acpica/
synced 2025-01-13 12:59:18 +03:00
Better fix for escaped quotes!
date 2001.08.24.20.22.00; author rmoore1; state Exp;
This commit is contained in:
parent
6d96601310
commit
8a76bdd5d3
@ -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++;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user