0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-17 07:20:55 +01:00

ircd::json: Reorder alternative operands.

This commit is contained in:
Jason Volk 2020-01-17 17:26:23 -08:00
parent 092cb5d804
commit d91b9d0aee

View file

@ -153,7 +153,7 @@ struct ircd::json::input
// primary recursive rule // primary recursive rule
const rule<unused_type(uint)> value const rule<unused_type(uint)> value
{ {
lit_false | lit_null | lit_true | string | number | object(depth + 1) | array(depth + 1) string | number | lit_true | lit_false | lit_null | object(depth + 1) | array(depth + 1)
,"value" ,"value"
}; };
@ -204,11 +204,11 @@ struct ircd::json::input
:input::base_type{rule<>{}} // required by spirit :input::base_type{rule<>{}} // required by spirit
{ {
// synthesized repropagation of recursive rules // synthesized repropagation of recursive rules
value %= lit_false value %= string
| lit_null
| lit_true
| string
| number | number
| lit_true
| lit_false
| lit_null
| object(depth + 1) | object(depth + 1)
| array(depth + 1) | array(depth + 1)
; ;