From d988ee32fe2d3f54c16d534a60e33499e78f26fe Mon Sep 17 00:00:00 2001 From: Robin Jadoul Date: Wed, 21 Jan 2026 15:19:06 +0100 Subject: [PATCH] fix(spec): Use a better precedence value for "idx" --- spec/expr.typ | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/spec/expr.typ b/spec/expr.typ index 751493619..a0530525b 100644 --- a/spec/expr.typ +++ b/spec/expr.typ @@ -47,16 +47,16 @@ #let PREC = ( "MIN": -1, // - "pow": 0, // ^ - "neg": 1, // Unary - - "cast": 2, // cast - "mul": 3, // * - "div": 4, // / - "sum": 5, // Σ - "not": 6, // not - "add": 7, // + - "sub": 8, // - - "idx": 9, // [] + "idx": 0, // [] + "pow": 1, // ^ + "neg": 2, // Unary - + "cast": 3, // cast + "mul": 4, // * + "div": 5, // / + "sum": 6, // Σ + "not": 7, // not + "add": 8, // + + "sub": 9, // - "eq": 10, // = and := "MAX": 11, // )