mirror of
https://github.com/matrix-construct/construct
synced 2024-11-17 07:20:55 +01:00
ircd::json: Scan until eoi for type check of numbers and literals.
This commit is contained in:
parent
8ef53f2640
commit
aee06c5ff8
1 changed files with 5 additions and 5 deletions
10
ircd/json.cc
10
ircd/json.cc
|
@ -129,11 +129,11 @@ struct input
|
|||
|
||||
rule<int> type
|
||||
{
|
||||
(omit[object_begin] >> attr(json::OBJECT)) |
|
||||
(omit[array_begin] >> attr(json::ARRAY)) |
|
||||
(omit[quote] >> attr(json::STRING)) |
|
||||
(omit[number] >> attr(json::NUMBER)) |
|
||||
(omit[literal] >> attr(json::LITERAL))
|
||||
(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