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

Escape reserved keywords when inlining deps #138

Merged
merged 2 commits into from
Aug 11, 2022
Merged

Escape reserved keywords when inlining deps #138

merged 2 commits into from
Aug 11, 2022

Conversation

JasonGross
Copy link
Owner

Fixes #129

The code for finding the list of reserved names is kind-of hacky (see
https://coq.zulipchat.com/#narrow/stream/237656-Coq-devs-.26-plugin-devs/topic/Printing.20keywords/near/292550511),
and this doesn't handle all cases (in particular, there still seems to
be no way to handle qualified references to
Equations.Prop.Equations.foo which don't show up in the .glob file, or
which show up in the glob file in a way that is too fragile to do
mangling on), but this handles the common case of just doing Require Import Equations.Prop.Equations..

Fixes #129

The code for finding the list of reserved names is kind-of hacky (see
https://coq.zulipchat.com/#narrow/stream/237656-Coq-devs-.26-plugin-devs/topic/Printing.20keywords/near/292550511),
and this doesn't handle all cases (in particular, there still seems to
be no way to handle qualified references to
`Equations.Prop.Equations.foo` which don't show up in the .glob file, or
which show up in the glob file in a way that is too fragile to do
mangling on), but this handles the common case of just doing `Require
Import Equations.Prop.Equations.`.
@JasonGross JasonGross enabled auto-merge (squash) August 11, 2022 18:18
@JasonGross JasonGross merged commit 2ebd294 into master Aug 11, 2022
@JasonGross JasonGross deleted the handle-prop branch August 11, 2022 19:27
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

Successfully merging this pull request may close these issues.

Try alternatives to module wrapping
1 participant