Fixes to parsing marco content, progress on validation test (single-header)

This commit is contained in:
2023-08-23 21:19:31 -04:00
parent a6766cf0b1
commit 9edcbad907
4 changed files with 49 additions and 58 deletions

View File

@ -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 )