🐛 fix lexer to properly cope with repeated comments #2330

This commit is contained in:
Niels Lohmann 2020-07-31 18:59:22 +02:00
parent 1da931730a
commit 3888b1642a
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69
4 changed files with 12 additions and 2 deletions

View file

@ -1511,7 +1511,7 @@ scan_number_done:
skip_whitespace();
// ignore comments
if (ignore_comments && current == '/')
while (ignore_comments && current == '/')
{
if (!scan_comment())
{