mirror of
https://github.com/Ed94/gencpp.git
synced 2025-07-05 21:25:44 -07: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