Add a lexer for Lean 4 by eric-wieser · Pull Request #2618 · pygments/pygments

@eric-wieser mentioned this pull request

Dec 30, 2023

Kha and others added 4 commits

December 30, 2023 22:53
There is no need for `re.UNICODE` any more, or `u` prefixes.
The version and url information no longer lives in the docstring.

@eric-wieser

This allows a lean4 version of the lean3 test to be committed
* Use `Whitespace` not `Text` for Whitespace
* Use a single token for an entire multiline comment, not one per character
* Fix brace-matching for `@[attr]` syntax
* Add docstring highlighting

@eric-wieser

@eric-wieser

@eric-wieser

Julian

@eric-wieser

@eric-wieser

@eric-wieser

This also corrects the integer parser to not include field projections

@eric-wieser

jeanas

@jeanas

jeanas

@jeanas

jeanas

@jeanas

jeanas

jeanas

jeanas

@jeanas

@eric-wieser