Skip to content

Conversation

@sovdeeth
Copy link
Member

Problem

The new potion effect exprsec highlighted a longstanding flaw in ExprSec parsing. Children can claim sections before their parents, leading to unexpected parsing errors within the section and unintuitive parsing when using a exprsec within a clear section like an if statement.

Solution

Syntaxes now claim prior to initialization (prior to children being able to claim) and unclaim if init fails.

Ensures Sections get priority over ExrpSecs, and still errors if 2+ exprsecs are in a line together without a clear owner (a pure Section)

Also fixes a potion bug with infinite() comparing a nullable Integer with an int.

Testing Completed

expression sections.sk

Supporting Information


Completes: none
Related: none
AI assistance: none

Ensures Sections get priority over ExrpSecs, and still errors if 2+ exprsecs are in a line together without a clear owner (a pure Section)

Also fixes a potion bug with infinite() comparing a nullable Integer with an int.
@sovdeeth sovdeeth requested review from a team as code owners January 22, 2026 07:48
@sovdeeth sovdeeth added the bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. label Jan 22, 2026
@sovdeeth sovdeeth requested review from Pesekjak and UnderscoreTud and removed request for a team January 22, 2026 07:48
@skriptlang-automation skriptlang-automation bot added the needs reviews A PR that needs additional reviews label Jan 22, 2026
@github-project-automation github-project-automation bot moved this to Awaiting Merge in 2.14 Releases Jan 22, 2026
@skriptlang-automation skriptlang-automation bot added patch-ready A PR/issue that has been approved and is ready to be merged/closed for the next patch version. and removed needs reviews A PR that needs additional reviews labels Jan 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. patch-ready A PR/issue that has been approved and is ready to be merged/closed for the next patch version.

Projects

Status: Awaiting Merge

Development

Successfully merging this pull request may close these issues.

3 participants