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:
parent
bec1006ba7
commit
ace2a990b5
1 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue