0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-25 23:14:13 +01:00

ircd::json: Optimize string character grammar.

This commit is contained in:
Jason Volk 2020-07-21 00:36:54 -07:00
parent d2fd7488fe
commit 898f7980f6

View file

@ -148,9 +148,16 @@ ircd::json::parser
,"escaper"
};
const rule<> escape_sequence
{
escape >> escaper_nc
,"escape sequence"
};
const rule<string_view> chars
{
raw[*((char_ - escaped) | (escape >> escaper_nc))]
//raw[*((char_ - escaped) | (escape >> escaper_nc))]
raw[*((~char_('\x00', '\x1F') - char_("\x22\x5C")) | (escape >> escaper_nc))]
,"characters"
};