mirror of
https://github.com/Ed94/gencpp.git
synced 2025-12-27 10:19:02 -08:00
Fixes to parsing marco content, progress on validation test (single-header)
This commit is contained in:
@@ -523,10 +523,10 @@ namespace Parser
|
||||
s32 within_char = false;
|
||||
while ( left )
|
||||
{
|
||||
if ( current == '"' )
|
||||
if ( current == '"' && ! within_char )
|
||||
within_string ^= true;
|
||||
|
||||
if ( current == '\'' )
|
||||
if ( current == '\'' && ! within_string )
|
||||
within_char ^= true;
|
||||
|
||||
if ( current == '\\' && ! within_string && ! within_char )
|
||||
|
||||
Reference in New Issue
Block a user