@Kha Note that I had to write the weird pattern ``` match_syntax stx with | `(notation:$prec $items* => $rhs) => expandNotationAux stx prec items rhs | `(notation $noprec* $items* => $rhs) => expandNotationAux stx none items rhs | _ => Macro.throwUnsupported ``` with the weird `$noprec*` to match the case where the optional precedence is not provided. I realized this is not a bug, but I guess most users will be puzzled by this behavior. If we had a kind for `notationItem`, I would be able to write ``` `(notation $items:notationItems* => $rhs) ``` |
||
|---|---|---|
| .. | ||
| Compiler | ||
| Data | ||
| Elab | ||
| EqnCompiler | ||
| Meta | ||
| Parser | ||
| PrettyPrinter | ||
| Util | ||
| Attributes.lean | ||
| AuxRecursor.lean | ||
| Class.lean | ||
| Compiler.lean | ||
| Declaration.lean | ||
| Delaborator.lean | ||
| Elab.lean | ||
| Environment.lean | ||
| EqnCompiler.lean | ||
| Eval.lean | ||
| Expr.lean | ||
| HeadIndex.lean | ||
| Hygiene.lean | ||
| KeyedDeclsAttribute.lean | ||
| Level.lean | ||
| Linter.lean | ||
| LocalContext.lean | ||
| Message.lean | ||
| Meta.lean | ||
| MetavarContext.lean | ||
| Modifiers.lean | ||
| Parser.lean | ||
| PrettyPrinter.lean | ||
| ProjFns.lean | ||
| ReducibilityAttrs.lean | ||
| Runtime.lean | ||
| Scopes.lean | ||
| Structure.lean | ||
| Syntax.lean | ||
| ToExpr.lean | ||
| Util.lean | ||