Skip to content

Fix error in math argument parsing when dots aren't followed by anything - #7105

Merged
laurmaedje merged 1 commit into
typst:mainfrom
isuffix:push-ryykoputknyv
Oct 15, 2025
Merged

laurmaedje merged 1 commit into
typst:mainfrom
isuffix:push-ryykoputknyv

Conversation

@isuffix

@isuffix isuffix commented Oct 10, 2025

Copy link
Copy Markdown
Collaborator

RE: #7036 (comment)

This is a bug fix for an error in the math parser when using two dots not followed by anything, e.g. $func(..)$.

I chose to avoid refactoring the entire math_arg function to make the change easier to review and hopefully get in for 0.14, but I left a TODO comment for myself for later.

@laurmaedje

Copy link
Copy Markdown
Member

Does this solely change error cases into non-error cases or can it also affect behavior in cases that previously compiled?

@isuffix

isuffix commented Oct 13, 2025

Copy link
Copy Markdown
Collaborator Author

This should only effect error cases. I can't think of any way this would impact already compiling code.

@laurmaedje
laurmaedje added this pull request to the merge queue Oct 15, 2025
@laurmaedje

Copy link
Copy Markdown
Member

Thanks, seems sensible!

Merged via the queue into typst:main with commit c3505ae Oct 15, 2025
8 checks passed
@isuffix
isuffix deleted the push-ryykoputknyv branch October 15, 2025 17:10
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.

2 participants