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

fix: make sure name literals use escaping when pretty printing #5639

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

kmill
Copy link
Collaborator

@kmill kmill commented Oct 7, 2024

The app unexpanders for Name.mkStr1 through Name.mkStr8 weren't respecting the escaping rules for names. For example, #check `«a.b» would show `a.b.

This PR folds the unexpanders into the name literal delaborator, where escaping is already handled.

The app unexpanders for `Name.mkStr1` through `Name.mkStr8` weren't respecting the escaping rules for names. For example, ``#check `«a.b»`` would show `` `a.b``.

This PR folds the unexpanders into the name literal delaborator, where escaping is already handled.
@github-actions github-actions bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label Oct 7, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request Oct 7, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request Oct 7, 2024
@leanprover-community-bot leanprover-community-bot added the builds-mathlib CI has verified that Mathlib builds against this PR label Oct 7, 2024
@leanprover-community-bot
Copy link
Collaborator

Mathlib CI status (docs):

@kmill kmill added this pull request to the merge queue Oct 8, 2024
Merged via the queue into leanprover:master with commit 6cdede3 Oct 8, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
builds-mathlib CI has verified that Mathlib builds against this PR toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants