fix: ignore unused anonymous have variables
This commit is contained in:
parent
6bf01ebd30
commit
2270e8cd53
1 changed files with 5 additions and 0 deletions
|
|
@ -102,6 +102,11 @@ builtin_initialize addBuiltinUnusedVariablesIgnoreFn (fun _ stack opts =>
|
|||
(stx.isOfKind ``Lean.Parser.Term.matchAlt && pos == 1) ||
|
||||
(stx.isOfKind ``Lean.Parser.Tactic.inductionAltLHS && pos == 2))
|
||||
|
||||
-- is anonymous have variable
|
||||
builtin_initialize addBuiltinUnusedVariablesIgnoreFn (fun stx stack _ =>
|
||||
stx.getId == `this &&
|
||||
(stack.matches [none, ``Lean.Parser.Term.haveIdDecl] ||
|
||||
stack.matches [none, ``Lean.Parser.Term.haveEqnsDecl]))
|
||||
|
||||
builtin_initialize unusedVariablesIgnoreFnsExt : SimplePersistentEnvExtension Name Unit ←
|
||||
registerSimplePersistentEnvExtension {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue