Reimplement Trigraph Fix (#18)

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

* Update Expr.hx
This commit is contained in:
Crimson-is-stupid
2026-06-03 23:32:25 -07:00
committed by GitHub
parent 7f3de28e02
commit 1972ae6a82
+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: "?";
}
}