Merge pull request #339 from RedCreepster/escape-quoting-in-config

Fix parsing escaped quotes in config
This commit is contained in:
Andrey Borodin 2021-06-29 12:38:13 +05:00 committed by GitHub
commit bfcae67e66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -146,6 +146,10 @@ static inline int od_parser_next(od_parser_t *parser, od_token_t *token)
token->type = OD_PARSER_ERROR;
return token->type;
}
if ((*parser->pos == '\\') &&
(parser->pos + 1 != parser->end))
parser->pos += 2;
else
parser->pos++;
}
if (od_unlikely(parser->pos == parser->end)) {