Improve escaping of % in command parsing

This commit is contained in:
Maxime Coste 2015-09-20 11:48:11 +01:00
parent ca2043d9f2
commit 01152d7cd9

View File

@ -310,7 +310,7 @@ TokenList parse(StringView line)
if (not str.empty()) if (not str.empty())
result.emplace_back(Token::Type::Raw, start, reader.pos, result.emplace_back(Token::Type::Raw, start, reader.pos,
coord, std::move(str)); coord, std::move(unescape(str, "%", '\\')));
} }
if (is_command_separator(*reader)) if (is_command_separator(*reader))