Make sure matches come with correct types.

This commit is contained in:
Danila Fedorin 2018-02-10 17:21:32 -08:00
parent 0e4d82ad44
commit d79d001013
1 changed files with 1 additions and 0 deletions

View File

@ -68,6 +68,7 @@ int _lexer_foreach_convert_match(void* data, va_list args) {
state->line++;
state->line_from = match->to;
} if((new_match = malloc(sizeof(*new_match)))) {
new_match->type = match->pattern;
new_match->from = match->from;
new_match->to = match->to;
new_match->line_from = state->line_from;