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

Add lexer for Promela #906

Merged
merged 2 commits into from Jan 2, 2024
Merged

Add lexer for Promela #906

merged 2 commits into from Jan 2, 2024

Conversation

lmarzen
Copy link
Contributor

@lmarzen lmarzen commented Jan 2, 2024

This pull request adds a lexer for Promela. (https://spinroot.com/spin/whatispin.html)

I have opened a similar pull request for Pygments: pygments/pygments#2620
I generated the lexer using my branch of Pygments with Promela.

$ python3 -m venv pygments-promela
$ source pygments-promela/bin/activate
$ pip install pystache
$ pip install /path/to/pygments-promela 

$ python3 _tools/pygments2chroma_xml.py pygments.lexers.c_like.PromelaLexer > lexers/embedded/promela.xml

Verified expected formatting using go run . Playground.

@alecthomas
Copy link
Owner

Would you mind adding some test text please?

@alecthomas alecthomas merged commit eb47752 into alecthomas:master Jan 2, 2024
2 checks passed
@alecthomas
Copy link
Owner

Thanks!

@lmarzen
Copy link
Contributor Author

lmarzen commented Jan 2, 2024

Thank you, great project you have going here!

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.

None yet

2 participants