Parsing Expression Grammars in Vim
Recently I’ve been doing quite a bit of work with Parsing Expression Grammars (or PEG for short). They’re very powerful tools for matching complex patterns. Inimino’s PanPG is the awesome PEG library I’ve been working with to make some cool stuff (you should check it out!). Anyway, lack of syntax highlighting in Vim has caused me to overlook small errors at times, this has prompted me to write
peg.vim, a syntax definition for vim.
I recommend using pathogen to install
peg.vim as a bundle.
You can grab the latest version from the peg.vim Github repo.
Here’s what it looks like in my colour scheme: