0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-18 07:50:57 +01:00

ircd::json: Change condition order.

This commit is contained in:
Jason Volk 2018-09-05 00:55:55 -07:00
parent bec1006ba7
commit ace2a990b5

View file

@ -152,15 +152,15 @@ struct ircd::json::input
const rule<unused_type(uint)> value
{
lit_false | lit_null | lit_true | object(depth + 1) | array(depth + 1) | number | string
lit_false | lit_null | lit_true | string | number | object(depth + 1) | array(depth + 1)
,"value"
};
rule<int> type
{
(omit[quote] >> attr(json::STRING)) |
(omit[object_begin] >> attr(json::OBJECT)) |
(omit[array_begin] >> attr(json::ARRAY)) |
(omit[quote] >> attr(json::STRING)) |
(omit[number >> eoi] >> attr(json::NUMBER)) |
(omit[literal >> eoi] >> attr(json::LITERAL))
,"type"