Reimplement Trigraph Fix (#18)

* replace all "??=" with "??" + "="

* Update Expr.hx
This commit is contained in:
Crimson-is-stupid
2026-06-03 23:37:56 -07:00
committed by Jaime Humberto Macias Bustamante
parent b9da833bb5
commit 4625529be7
+2 -2
View File
@@ -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: "?";
}
}