Skip to content

Fix MOO assignments inside conditions and expressions - #204

Merged
ctoth merged 2 commits into
masterfrom
fix/moo-expression-assignments
Oct 23, 2026
Merged

ctoth merged 2 commits into
masterfrom
fix/moo-expression-assignments

Conversation

@ctoth

@ctoth ctoth commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Recognize local assignment targets throughout masked MOO source, including immediately after expression punctuation and across line breaks. This fixes the false undefined-local warning for if (valid(channel = this:current_channel(player))); property names remain excluded from local definitions. ToastStunt src/parser.y:139 and :466-486 establish the syntax, and the installed tree-sitter parser already parses the example successfully. No npm parser release is needed for this fix. Validation: the normal commit hook ran typecheck and staged lint; hosted PR CI is pending.

@ctoth
ctoth merged commit cd58af8 into master Oct 23, 2026
2 checks passed
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.

1 participant