summaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2024-03-12 11:47:48 +0100
committerGitHub <noreply@github.com>2024-03-12 10:47:48 +0000
commit1d027ff6d22a2961d5078aa7e1abaa2710a1fb0e (patch)
tree8accf7e46485c3aeed529febb32d28f1f1e396e8 /crates
parent633c32a55228765adcad41d22d016146e5149db9 (diff)
Fix parsing of parenthesized imports (#3633)
Diffstat (limited to 'crates')
-rw-r--r--crates/typst-syntax/src/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/typst-syntax/src/parser.rs b/crates/typst-syntax/src/parser.rs
index e5ecbc11..50032898 100644
--- a/crates/typst-syntax/src/parser.rs
+++ b/crates/typst-syntax/src/parser.rs
@@ -984,7 +984,7 @@ fn module_import(p: &mut Parser) {
/// Parses items to import from a module: `a, b, c`.
fn import_items(p: &mut Parser) {
let m = p.marker();
- while !p.eof() && !p.at(SyntaxKind::Semicolon) {
+ while !p.current().is_terminator() {
let item_marker = p.marker();
if !p.eat_if(SyntaxKind::Ident) {
p.unexpected();