mirror of
https://github.com/nlohmann/json.git
synced 2025-07-28 12:02:00 +03:00
✅ add tests for comment skipping
This commit is contained in:
@ -9574,7 +9574,13 @@ scan_number_done:
|
||||
error_message = "invalid comment";
|
||||
return token_type::parse_error;
|
||||
}
|
||||
get();
|
||||
|
||||
// skip following whitespace
|
||||
do
|
||||
{
|
||||
get();
|
||||
}
|
||||
while (current == ' ' or current == '\t' or current == '\n' or current == '\r');
|
||||
}
|
||||
|
||||
switch (current)
|
||||
|
Reference in New Issue
Block a user