Merge pull request #13 from oscargus/commenttypo

Allow comments in scope (fix typo)
This commit is contained in:
Frans Skarman 2023-09-19 13:00:01 +00:00 committed by GitHub
commit e46e0b0cc5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 301 additions and 4 deletions

View file

@ -386,7 +386,7 @@ pub(super) fn parse_scopes<'a, R: std::io::Read>(
ident(word_reader, "$end")?;
break;
}
"comment" => {
"$comment" => {
// although we don't store comments, we still need to advance the
// word_reader cursor to the end of the comment
loop {