fix: support new inductionAlt syntax at Linter/Basic.lean

This commit is contained in:
Leonardo de Moura 2022-06-14 11:31:26 -07:00
parent bd2cccf287
commit 3a1dc5e066

View file

@ -195,7 +195,7 @@ where
isPatternVar (_ : Syntax) (stack : SyntaxStack) :=
stack.any fun (stx, pos) =>
(stx.isOfKind ``Lean.Parser.Term.matchAlt && pos == 1) ||
(stx.isOfKind ``Lean.Parser.Tactic.inductionAlt && pos == 2)
(stx.isOfKind ``Lean.Parser.Tactic.inductionAltLHS && pos == 2)
builtin_initialize addLinter unusedVariables