mirror of
https://github.com/typst/typst
synced 2025-05-14 17:15:28 +08:00
Fix parsing of parenthesized imports (#3633)
This commit is contained in:
parent
633c32a552
commit
1d027ff6d2
@ -984,7 +984,7 @@ fn module_import(p: &mut Parser) {
|
|||||||
/// Parses items to import from a module: `a, b, c`.
|
/// Parses items to import from a module: `a, b, c`.
|
||||||
fn import_items(p: &mut Parser) {
|
fn import_items(p: &mut Parser) {
|
||||||
let m = p.marker();
|
let m = p.marker();
|
||||||
while !p.eof() && !p.at(SyntaxKind::Semicolon) {
|
while !p.current().is_terminator() {
|
||||||
let item_marker = p.marker();
|
let item_marker = p.marker();
|
||||||
if !p.eat_if(SyntaxKind::Ident) {
|
if !p.eat_if(SyntaxKind::Ident) {
|
||||||
p.unexpected();
|
p.unexpected();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user