mirror of
https://github.com/nlohmann/json.git
synced 2026-04-18 05:58:53 +00:00
✅ add tests for comment skipping
This commit is contained in:
@@ -1507,7 +1507,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