✅ add tests for comment skipping
This commit is contained in:
parent
74520d8bb0
commit
0585ecc56b
3 changed files with 58 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue