Skip to content

Add a teal lexer #1671

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

Merged
merged 4 commits into from
Mar 14, 2021
Merged

Add a teal lexer #1671

merged 4 commits into from
Mar 14, 2021

Conversation

iscke
Copy link
Contributor

@iscke iscke commented Jan 10, 2021

This PR adds a lexer for teal (https://developer.algorand.org/docs/reference/teal/specification/), the language used for smart contracts for the algorand blockchain.

I've tried to follow the coding standards used elsewhere in this project as closely as possible, but if anything's wrong please don't hesitate to let me know. Hope this can help.

Copy link
Collaborator

@Anteru Anteru left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution! Please change the tests to use the new test system using golden files, it makes it easier to maintain. (See Contributing.md for details.)

@Anteru Anteru self-assigned this Mar 14, 2021
@Anteru Anteru added the update needed Waiting for an update from the PR/issue creator label Mar 14, 2021
@Anteru Anteru added this to the 2.9 milestone Mar 14, 2021
@Anteru
Copy link
Collaborator

Anteru commented Mar 14, 2021

Thanks! A few more things: You have to move all examples into /examplefiles/teal (i.e. also tests/examplefiles/example.teal), and it looks like you're missing the golden test files (you can generate them using py.test --update-goldens)

@iscke
Copy link
Contributor Author

iscke commented Mar 14, 2021

oops, thank you

@Anteru
Copy link
Collaborator

Anteru commented Mar 14, 2021

Thanks. Just to make sure, 7777777777777777777777777777777777777777777777777774MSJUVU is really supposed to be a single number?

@iscke
Copy link
Contributor Author

iscke commented Mar 14, 2021

Yeah, it's a crypto account address

@Anteru Anteru removed the update needed Waiting for an update from the PR/issue creator label Mar 14, 2021
@Anteru
Copy link
Collaborator

Anteru commented Mar 14, 2021

Merged, thanks!

@Anteru Anteru merged commit de5b0e6 into pygments:master Mar 14, 2021
@iscke
Copy link
Contributor Author

iscke commented Mar 15, 2021

Thank you!

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.

2 participants