Add lexer for Promela by lmarzen · Pull Request #2620 · pygments/pygments
This pull request adds a lexer for Promela. (https://spinroot.com/spin/whatispin.html)
Promela (Process Meta Language) is a C-like language used by SPIN to formally model software and hardware systems. SPIN (Simple Promela Interpreter) was originally developed in the 1980s at Bell Labs and since 1991 has been open-source and is a popular formal methods tool.
Pygments already supports other popular formal methods languages, including Isabelle, Coq, and NuSmv. Promela would be a fitting addition.
I have not included test snippets since PromelaLexer is derived from CLexer, though I have tested that it produces correct highlighting on a few of my own Promela files. Edit: I added snippets and examplefiles and ran tox -e check and tox -e mapfiles which both succeeded.