diff --git a/src/asm/lexer.c b/src/asm/lexer.c index c339bf49..027a8cbd 100644 --- a/src/asm/lexer.c +++ b/src/asm/lexer.c @@ -181,16 +181,10 @@ YY_BUFFER_STATE yy_create_buffer(FILE *f) /* Convert all line endings to LF and spaces */ char *mem = pBuffer->pBuffer; - uint32_t instring = 0; while (*mem) { - if (*mem == '\"') - instring = 1 - instring; - if ((mem[0] == '\\') && (mem[1] == '\"' || mem[1] == '\\')) { mem += 2; - } else if (instring) { - mem += 1; } else { /* LF CR and CR LF */ if (((mem[0] == 10) && (mem[1] == 13)) @@ -211,7 +205,7 @@ YY_BUFFER_STATE yy_create_buffer(FILE *f) /* Remove comments */ mem = pBuffer->pBuffer; - instring = 0; + uint32_t instring = 0; while (*mem) { if (*mem == '\"')