Skip to content

fix(core): Weir options should resolve independent of order#3523

Merged
elijah-potter merged 2 commits into
masterfrom
wier_ordering
May 28, 2026
Merged

fix(core): Weir options should resolve independent of order#3523
elijah-potter merged 2 commits into
masterfrom
wier_ordering

Conversation

@elijah-potter
Copy link
Copy Markdown
Collaborator

Issues

This fixes an issue mentioned to me in Discord.

Description

If two expressions existed in a Weir option (denoted with the [] syntax), a shorter branch might stop a longer branch from matching.

As it turnes out, this was pretty easy to fix. I just swapped out FirstMatchof for LongestMatchOf.

How Has This Been Tested?

Additional unit test.

Checklist

  • I have performed a self-review of my own code
  • I have added tests to cover my changes
  • I have considered splitting this into smaller pull requests.

@hippietrail
Copy link
Copy Markdown
Collaborator

If two expressions existed in a Weir option (denoted with the [] syntax), a shorter branch might stop a longer branch from matching.

As it turnes out, this was pretty easy to fix. I just swapped out FirstMatchof for LongestMatchOf.

Had a hunch it would be that (-:

@elijah-potter elijah-potter added this pull request to the merge queue May 28, 2026
Merged via the queue into master with commit 242ba27 May 28, 2026
13 checks passed
@elijah-potter elijah-potter deleted the wier_ordering branch May 28, 2026 21:31
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