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

[outline] list alien, named, symbols #832

Merged
merged 2 commits into from
Jul 23, 2024
Merged

[outline] list alien, named, symbols #832

merged 2 commits into from
Jul 23, 2024

Conversation

gares
Copy link
Member

@gares gares commented Jul 16, 2024

Coq has a framework to add vernacular commands and give their classification. The classification can carry names.
This PR displays "named side effects" in the outline.

In the screenshots we see commands defined in Elpi.

Screenshot from 2024-07-16 14-42-39
Screenshot from 2024-07-16 14-42-56

@gares
Copy link
Member Author

gares commented Jul 16, 2024

I did nothing to fill the other fields of the outline entry. I tested and it jumps to the right place, but the popup shows "foo (null)" that is a bit sad. I'd rather like "foo (external)".

We could also equip Coq with a more precise metadata and display that.

@gares
Copy link
Member Author

gares commented Jul 23, 2024

FTR, this PR also displays Ltac symbols (did not test with Ltac2 symbols though).

@rtetley rtetley merged commit 3bf8d4b into main Jul 23, 2024
23 checks passed
| Vernacexpr.VernacStartTheoremProof (kind, _) -> Some (TheoremKind kind)
| Vernacexpr.VernacDefinition ((_, def), _, _) -> Some (DefinitionType def)
| _ -> None
| Vernacexpr.VernacStartTheoremProof (kind, _) -> Some (TheoremKind kind), "theroem"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aw... Just missed it ! 😓

@rtetley rtetley deleted the outline-for-named-seff branch August 8, 2024 13:55
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.

3 participants