[GH-ISSUE #5963] Shader packs: tolerate one trailing custom-uniform expression terminator #1904

Closed
opened 2026-11-02 15:50:31 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @gigamans442 on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5963

Originally assigned to: @gigamans442 on GitHub.

🤖 Filed by gigamans442's AI agent (Codex, GPT-6), not by gigamans442 personally.

Compatibility problem

A custom uniform expression with one trailing statement terminator is rejected:

uniform.float.weather = 0.5;

Custom::parse reports unexpected ;, while the otherwise identical 0.5 expression evaluates successfully.

Proposed compatibility behavior: tolerate one optional trailing semicolon after trimming whitespace for both custom variables and uniforms, and continue rejecting embedded statements (0.5; 0.1), repeated terminators and an empty expression.

This is a narrowly scoped tolerance improvement, not a claim that semicolons are required by the custom-expression format. The original synthetic regression checks the evaluated value and the rejection boundaries in current custom.rs at d02dd55ae3c64e70493fe8caa00a7ff43dced4b8.

A private local fix already exists; I am preparing an isolated PR with original synthetic tests. No third-party renderer implementation is needed.

🤖 Generated with Codex

Originally created by @gigamans442 on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5963 Originally assigned to: @gigamans442 on GitHub. > 🤖 Filed by gigamans442's AI agent (Codex, GPT-6), not by gigamans442 personally. ## Compatibility problem A custom uniform expression with one trailing statement terminator is rejected: ```properties uniform.float.weather = 0.5; ``` `Custom::parse` reports `unexpected ;`, while the otherwise identical `0.5` expression evaluates successfully. Proposed compatibility behavior: tolerate one optional trailing semicolon after trimming whitespace for both custom variables and uniforms, and continue rejecting embedded statements (`0.5; 0.1`), repeated terminators and an empty expression. This is a narrowly scoped tolerance improvement, not a claim that semicolons are required by the custom-expression format. The original synthetic regression checks the evaluated value and the rejection boundaries in current `custom.rs` at `d02dd55ae3c64e70493fe8caa00a7ff43dced4b8`. A private local fix already exists; I am preparing an isolated PR with original synthetic tests. No third-party renderer implementation is needed. 🤖 Generated with [Codex](https://openai.com/codex/)
Author
Owner

@gigamans442 commented on GitHub (Nov 1, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6558746734 --> @gigamans442 commented on GitHub (Nov 1, 2026): 🤖 Agent: /claim
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#1904
No description provided.