Skip to content

Conversation

@fpottier
Copy link
Contributor

This PR makes and a keyword (so far, it was wrongly considered an infix operator) and removes value from the set of keywords (it is not a keyword).

"value" is not a keyword in OCaml.
It was once a keyword in the so-called "revised" syntax of OCaml,
but this syntax was never mainstream and is now essentially extinct.
"and" is a keyword in OCaml.
It is used e.g. in "let x = 0 and y = 1".
It is not an infix operator.
@jeanas
Copy link
Contributor

jeanas commented Sep 24, 2023

Please fix the tests by updating the test output. You need to run tox -- --update-goldens, commit and push the result. I'd do it for you, but it seems I'm not allowed to push to the source branch of this PR in spite of "Maintainers are allowed to edit this pull request" in the sidebar. Perhaps it has to do with the fact that you opened your PR from the master branch of your fork, which might be protected or something similar.

@fpottier
Copy link
Contributor Author

Done, thanks. Indeed, I am using minted/pygments for my MPRI course!

@jeanas jeanas merged commit c097c92 into pygments:master Sep 25, 2023
@jeanas
Copy link
Contributor

jeanas commented Sep 25, 2023

Thanks!

@Anteru Anteru added this to the 2.17 milestone Nov 17, 2023
@Anteru Anteru added the A-lexing area: changes to individual lexers label Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-lexing area: changes to individual lexers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants