mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-16 08:27:31 +08:00
refactor: use literal instead of seq(char,char)
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user