From 4625529be7441ed12210d20709c8c99f7cefb745 Mon Sep 17 00:00:00 2001 From: Crimson-is-stupid <89041944+Crimson-is-stupid@users.noreply.github.com> Date: Thu, 4 Jun 2026 09:32:25 +0300 Subject: [PATCH] Reimplement Trigraph Fix (#18) * replace all "??=" with "??" + "=" * Update Expr.hx --- hscript/Expr.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hscript/Expr.hx b/hscript/Expr.hx index f8c7968..7ef5b66 100644 --- a/hscript/Expr.hx +++ b/hscript/Expr.hx @@ -106,7 +106,7 @@ enum abstract Binop(Int) from Int to Int { case "<<=": OpShlAssign; case ">>=": OpShrAssign; case ">>>=": OpUshrAssign; - case "??=": OpNcoalAssign; + case _ if (s == "??" + "="): OpNcoalAssign; default: -1; } } @@ -149,7 +149,7 @@ enum abstract Binop(Int) from Int to Int { case OpShlAssign: "<<="; case OpShrAssign: ">>="; case OpUshrAssign: ">>>="; - case OpNcoalAssign: "??="; + case OpNcoalAssign: "??" + "="; default: "?"; } }