mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-17 17:58:09 +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;
|
bool is_hex = false;
|
||||||
std::string str;
|
std::string str;
|
||||||
region reg;
|
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;
|
loc = first;
|
||||||
is_hex = true;
|
is_hex = true;
|
||||||
|
Reference in New Issue
Block a user