check top level entry point invariants
This commit is contained in:
@@ -148,6 +148,19 @@ pub(crate) mod entry {
|
||||
}
|
||||
m.complete(p, ERROR);
|
||||
}
|
||||
|
||||
pub(crate) fn meta_item(p: &mut Parser) {
|
||||
let m = p.start();
|
||||
attributes::meta(p);
|
||||
if p.at(EOF) {
|
||||
m.abandon(p);
|
||||
return;
|
||||
}
|
||||
while !p.at(EOF) {
|
||||
p.bump_any();
|
||||
}
|
||||
m.complete(p, ERROR);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user