refactor: use literal instead of seq(char,char)

This commit is contained in:
ToruNiina
2025-02-07 00:49:04 +09:00
parent 4fc4d7fd75
commit 122b8a2e74

View File

@@ -473,7 +473,7 @@ parse_floating(location& loc, const context<TC>& ctx)
bool is_hex = false;
std::string str;
region reg;
if(spec.ext_hex_float && sequence(character('0'), character('x')).scan(loc).is_ok())
if(spec.ext_hex_float && literal("0x").scan(loc).is_ok())
{
loc = first;
is_hex = true;