Fix comment parsing error in CommandManager
This commit is contained in:
parent
ac5cbba0ae
commit
e6699c66ed
|
@ -172,8 +172,11 @@ void skip_blanks_and_comments(StringView base, ByteCount& pos)
|
||||||
pos += 2;
|
pos += 2;
|
||||||
else if (base[pos] == '#')
|
else if (base[pos] == '#')
|
||||||
{
|
{
|
||||||
while (pos != length and base[pos] != '\n')
|
while (pos != length)
|
||||||
++pos;
|
{
|
||||||
|
if (base[pos++] == '\n')
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user