lexer: add seven more unicode operators (#26074)

closes nim-lang/RFCs#571

Adds `⟑ ⟇ ⩓ ⩔ ■ □ ☆` with the same priority as `*`.

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
This commit is contained in:
Emmanuel M. Smith🔸
2026-08-05 16:12:17 +02:00
committed by GitHub
parent c69cf36610
commit 27763495bc
4 changed files with 44 additions and 5 deletions

View File

@@ -712,8 +712,8 @@ Unicode Operators
These Unicode operators are also parsed as operators:
∙ ∘ × ★ ⊗ ⊘ ⊙ ⊛ ⊠ ⊡ ∩ ∧ ⊓ # same priority as * (multiplication)
± ⊕ ⊖ ⊞ ⊟ ⊔ # same priority as + (addition)
∙ ∘ × ⊗ ⊘ ⊙ ⊛ ⊠ ⊡ ∩ ∧ ⊓ ⟑ ⟇ ⩓ ⩔ ■ □ # same priority as * (multiplication)
± ⊕ ⊖ ⊞ ⊟ # same priority as + (addition)
Unicode operators can be combined with non-Unicode operator