Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Longest match logic means more colGt required #1670

Open
digama0 opened this issue Sep 30, 2022 · 0 comments
Open

Longest match logic means more colGt required #1670

digama0 opened this issue Sep 30, 2022 · 0 comments

Comments

@digama0
Copy link
Collaborator

digama0 commented Sep 30, 2022

macro (priority := high) "let " x:ident : tactic => `(let' $x := ?_)

example : True := by
  let x
  exact Nat
  
-- expected ':=' or '|'

This is a regression caused by #1658, even though it was intended to improve the situation for exactly this example. (Perhaps the mathlib let/have should be defined in a test case...) It works if you put (let x) in parens but as written it gets parsed as let x exact Nat where exact and Nat are identifiers, followed by a parse error because the := is missing. As you can see, priority := high makes no difference for the parse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant