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

Feature suggestion: {leanWithScope} #297

Open
nomeata opened this issue Feb 13, 2025 · 0 comments
Open

Feature suggestion: {leanWithScope} #297

nomeata opened this issue Feb 13, 2025 · 0 comments

Comments

@nomeata
Copy link

nomeata commented Feb 13, 2025

As a short-hand to quickly get some variables into scope locally for proper highlighting, it would be nice to do that within {lean} or a variant thereof. Syntax ideas:

Lorem ipsum `{leanWithScope}`fun (x : Nat) (xs : List Nat) => x ∈ xs` -- explicit lambdaTelescope
Lorem ipsum `{lean}`(x : Nat) (xs : List Nat) : x ∈ xs`               -- if this isn’t too ambiguous
Lorem ipsum `{lean}`(x : Nat) (xs : List Nat) |- x ∈ xs             ` -- hoping this doesn’t conflict

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