mirror of
https://github.com/danog/parser.git
synced 2024-11-30 04:29:13 +01:00
parser: skip comments above enum cases for now
This commit is contained in:
parent
e25b501cfc
commit
92cc015d69
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user