Skip to content

Commit

Permalink
fix(tactic/lint): _ is not a linter (#8634)
Browse files Browse the repository at this point in the history
The `#lint` parser accepts `ident_`, but as far as I can tell, `_` doesn't mean anything in particular, it just tries and fails to resolve the `linter._` linter. This simplifies the parser to only accept `ident`.
  • Loading branch information
digama0 committed Aug 12, 2021
1 parent 8968739 commit 036c96b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tactic/lint/frontend.lean
Expand Up @@ -210,7 +210,7 @@ meta def lint_all (slow : bool := tt) (verbose : lint_verbosity := lint_verbosit
/-- Parses an optional `only`, followed by a sequence of zero or more identifiers.
Prepends `linter.` to each of these identifiers. -/
private meta def parse_lint_additions : parser (bool × list name) :=
prod.mk <$> only_flag <*> (list.map (name.append `linter) <$> ident_*)
prod.mk <$> only_flag <*> (list.map (name.append `linter) <$> ident*)

/--
Parses a "-" or "+", returning `lint_verbosity.low` or `lint_verbosity.high` respectively,
Expand Down

0 comments on commit 036c96b

Please sign in to comment.