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

Give proper colors to builtins #2834

Conversation

janmasrovira
Copy link
Collaborator

@janmasrovira janmasrovira commented Jun 17, 2024

I've added a field _nameKindPretty :: NameKind that is used to store the nameKind which should be used when highlighting and printing.
There is no need for pragmas as we can set a color for each builtin axiom statically in the haskell code.

I've also removed the fields _infoHighlightDoc :: DocTable and _infoHighlightNames :: [S.AName] from the Store/Scoped/Data/InfoTable as they were never being read.

@janmasrovira janmasrovira added the enhancement New feature or request label Jun 17, 2024
@janmasrovira janmasrovira self-assigned this Jun 17, 2024
@janmasrovira janmasrovira changed the title Give proper color to built-ins Give proper colors to built-ins Jun 17, 2024
@janmasrovira janmasrovira changed the title Give proper colors to built-ins Give proper colors to builtins Jun 17, 2024
@janmasrovira janmasrovira marked this pull request as ready for review June 17, 2024 22:56
@janmasrovira janmasrovira merged commit 7a7c8ce into main Jun 18, 2024
7 of 8 checks passed
@janmasrovira janmasrovira deleted the 2800-builtin-axioms-should-have-a-different-face-color-than-non-builtin-axioms branch June 18, 2024 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Builtin axioms should have a different face (color) than non-builtin axioms
2 participants