Writing a Pollen lexer in Pygments

from blog Jonas Hietala, | ↗ original
After writing a few blog posts about Pollen I started getting annoyed that I didn’t have syntax highlighting for the code snippets. So I did a bit of fooling around with Pygments, and it turns out writing a custom lexer isn’t that unreasonable, so here’s how I did it. Pollen markup Pollen’s rules are pretty simple as it’s basically just some...