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

New lexer for Sophia contracts #1974

Merged
merged 3 commits into from
Nov 28, 2021
Merged

Conversation

hanssv
Copy link
Contributor

@hanssv hanssv commented Nov 26, 2021

This PR implements a Pygments lexer for Sophia, a smart contract language See: https://www.buildwithsophia.com/ and https://github.com/aeternity/aesophia

Since Sophia has its roots in Reason the lexer is derived from (though not too much remains) the reason.py lexer module.

The PR contains the lexer implementation and an example input, test.aes, and its expected output from pytest --update-goldens.

pygments/lexers/sophia.py Outdated Show resolved Hide resolved
@Anteru Anteru self-assigned this Nov 28, 2021
@Anteru Anteru added this to the 2.11.0 milestone Nov 28, 2021
@Anteru Anteru added the changelog-update Items which need to get mentioned in the changelog label Nov 28, 2021
@Anteru Anteru merged commit 38cd147 into pygments:master Nov 28, 2021
@Anteru
Copy link
Collaborator

Anteru commented Nov 28, 2021

Merged, thanks!

@hanssv hanssv deleted the add_sophia_lexer branch November 29, 2021 07:24
@Anteru Anteru removed the changelog-update Items which need to get mentioned in the changelog label Dec 12, 2021
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