Fix bug causing spaces and newlines to remain in source.
This commit is contained in:
parent
a7c49192fb
commit
8c8e84b10d
|
@ -45,7 +45,7 @@ int _lexer_foreach_convert_match(void* data, va_list args) {
|
||||||
} else if(first_char == '\n') {
|
} else if(first_char == '\n') {
|
||||||
state->line++;
|
state->line++;
|
||||||
state->line_from = match->to;
|
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->type = match->pattern;
|
||||||
new_match->from = match->from;
|
new_match->from = match->from;
|
||||||
new_match->to = match->to;
|
new_match->to = match->to;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user