mirror of
https://github.com/danog/parser.git
synced 2024-12-03 09:57:45 +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();
|
let mut body = Block::new();
|
||||||
while self.current.kind != TokenKind::RightBrace {
|
while self.current.kind != TokenKind::RightBrace {
|
||||||
|
self.skip_comments();
|
||||||
match self.current.kind {
|
match self.current.kind {
|
||||||
TokenKind::Case => {
|
TokenKind::Case => {
|
||||||
self.next();
|
self.next();
|
||||||
|
Loading…
Reference in New Issue
Block a user