Skip to content

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

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

Fix error in math argument parsing when dots aren't followed by anything#7105
laurmaedje merged 1 commit intotypst:mainfrom
isuffix:push-ryykoputknyv

Conversation

@isuffix
Copy link
Collaborator

@isuffix isuffix commented Oct 10, 2025

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
Member

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

@isuffix
Copy link
Collaborator Author

isuffix commented Oct 13, 2025

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
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
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