Browse Source

Util: Fix parsing index in automatic mode

master
Riyyi 2 years ago
parent
commit
bbb8691c90
  1. 2
      src/util/format/parser.cpp

2
src/util/format/parser.cpp

@ -113,7 +113,7 @@ std::optional<size_t> Parser::consumeIndex()
switch (m_mode) {
case ArgumentIndexingMode::Automatic: {
VERIFY(consumeSpecific('}') || consumeSpecific(':'), "expecting '}' or ':', not '%c'", peek());
VERIFY(consumeSpecific(':') || peek() == '}', "expecting ':' or '}', not '%c'", peek());
return {};
}
case ArgumentIndexingMode::Manual: {

Loading…
Cancel
Save