Skip to content

gui.style: accept schema Persian words for solid and double; sema: typed components are not unused - #3704

Merged
BaseMax merged 4 commits into
mainfrom
fix/style-fa-alias-component-unused
Nov 20, 2026
Merged

BaseMax merged 4 commits into
mainfrom
fix/style-fa-alias-component-unused

Conversation

@BaseMax

@BaseMax BaseMax commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Two bugs found while translating pages, plus the last stale test from that work.

  • gui.style accepts the Persian spellings the layout schema and the translator use for solid and double (یکپارچه, دوتایی), next to its own توپر and دوخطی. Before, کادر = ۲، یکپارچه، #3366aa failed E018 even though the schema documents that word; the Persian tests/fa/translate/value_lists.salam source failed check on main for this reason. Neither new word collides with another keyword's English or Persian name, and KeywordFaName still returns the original spelling.
  • A component with typed parameters is lowered to a function of the same name, which page uses inline and never call, so salam check reported E066 "unused function" for it in both English and Persian whenever the file had an entry point. sema_check_unused_funcs now skips names that belong to a component.
  • tests/en/translate/value_lists drops its box shadow line: box shadow is no longer part of the style standard and the line failed on its own; padding and border still cover value lists. Its .out is regenerated; markup and printed values match the old file.

Checked on a build of this branch: the two repro files fail on main and pass here; errors 779 of 779; translate 34 of 35 (the last one, fa/struct_rules, needs multi-word names made of contextual keywords).

Not done: the style table and the schema disagree on 19 more Persian keywords (for example true/false, column, start, inset); each needs its own collision check before it can be added the same way. The translator also does not know style-standard-only properties such as shadow.

The layout schema and the translator write یکپارچه and دوتایی, while the style table only knew توپر and دوخطی, so a Persian border = ۲، یکپارچه، ... failed E018. Both spellings are accepted now; neither collides with another keyword.
Such a component is lowered to a function of the same name that page uses inline, so check reported E066 for it in both languages.
box shadow is not part of the style standard any more and its list value fails on its own; padding and border still cover value lists.
@BaseMax
BaseMax requested a review from a team as a code owner November 20, 2026 04:48
@coderabbitai

coderabbitai Bot commented Nov 20, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 13 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: dd0f3920-ebc9-4fd7-ab16-96da2634bc4e
Commits

Reviewing files that changed from the base of the PR and between 92b13da and 227ca93.

Files ignored due to path filters: 1

  • tests/en/translate/value_lists.out is excluded by !**/*.out
Files selected for processing: 4

  • compiler/semantic/sema_check_fn.salam
  • std/gui/style/props.salam
  • std/gui/style/table.salam
  • tests/en/translate/value_lists.salam
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@BaseMax
BaseMax merged commit c36da0a into main Nov 20, 2026
21 checks passed
@BaseMax
BaseMax deleted the fix/style-fa-alias-component-unused branch November 20, 2026 05:03
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