parser: skip comments above enum cases for now

This commit is contained in:
Ryan Chandler 2022-11-30 00:54:14 +00:00
parent e25b501cfc
commit 92cc015d69
No known key found for this signature in database
GPG Key ID: F113BCADDB3B0CCA

View File

@ -864,6 +864,7 @@ impl Parser {
let mut body = Block::new();
while self.current.kind != TokenKind::RightBrace {
self.skip_comments();
match self.current.kind {
TokenKind::Case => {
self.next();