fix: nullary attributes in new frontend
This commit is contained in:
parent
52d966f70b
commit
4b84f8fa88
1 changed files with 2 additions and 0 deletions
|
|
@ -64,6 +64,8 @@ env ← getEnv;
|
|||
unless (isAttribute env attrName) $
|
||||
throwError stx ("unknown attribute [" ++ attrName ++ "]");
|
||||
let args := stx.getArg 1;
|
||||
-- the old frontend passes Syntax.missing for empty args, for reasons
|
||||
let args := if args.getNumArgs == 0 then Syntax.missing else args;
|
||||
pure { name := attrName, args := args }
|
||||
|
||||
def elabAttrs (stx : Syntax) : CommandElabM (Array Attribute) :=
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue