Skip to content

Parenthesized imports - #4869

Merged
laurmaedje merged 7 commits into
typst:mainfrom
Dherse:import-array-syntax
Sep 2, 2024
Merged

laurmaedje merged 7 commits into
typst:mainfrom
Dherse:import-array-syntax

Conversation

@Dherse

@Dherse Dherse commented Aug 31, 2024

Copy link
Copy Markdown
Contributor

Fixes #3065

Allows the following syntax:

#import "module.typ": (a, b, c)

or

#import "module.typ": (
  a, b, c
)

Added relevant tests, change is tiny.

@PgBiel PgBiel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job, thank you!

Comment thread tests/suite/scripting/import.typ Resolved
Comment thread crates/typst-syntax/src/parser.rs Resolved
Comment thread crates/typst-syntax/src/parser.rs Resolved
@laurmaedje
laurmaedje added this pull request to the merge queue Sep 2, 2024
Merged via the queue into typst:main with commit 1997db0 Sep 2, 2024
@wrzian wrzian mentioned this pull request Sep 3, 2024
Dikluwe pushed a commit to Dikluwe/typst-crystalline that referenced this pull request Sep 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow importing with array syntax (like in Python)

3 participants