Fix bug causing spaces and newlines to remain in source.

This commit is contained in:
Danila Fedorin 2018-02-20 16:37:37 -08:00
parent a7c49192fb
commit 8c8e84b10d

View File

@ -45,7 +45,7 @@ int _lexer_foreach_convert_match(void* data, va_list args) {
} else if(first_char == '\n') {
state->line++;
state->line_from = match->to;
} if((new_match = malloc(sizeof(*new_match)))) {
} else if((new_match = malloc(sizeof(*new_match)))) {
new_match->type = match->pattern;
new_match->from = match->from;
new_match->to = match->to;