1
0
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:
Niels Lohmann
2020-06-19 13:10:35 +02:00
parent 74520d8bb0
commit 0585ecc56b
3 changed files with 58 additions and 3 deletions

View File

@ -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)