2012/6/16 Andrew Lunny <
alu...@gmail.com>:
> I've written a small vim-script for syntax highlighting PEG.js files that
> you can find here:
>
https://github.com/alunny/pegjs-vim
>
> It's missing syntax highlighting for the inline JS code, but I've found it
> pretty useful as is. Hopefully it's useful for others too.
Nice work, I just added it into my vim config :-) I also retweeted
your tweet [1] so that more PEG.js users get to know about this.
BTW it would be cool if the highlighter could be automatically
generated from PEG.js's grammar itself, but I don't know whether this
is feasible (I know only little about vim's syntax highlighting
capabilities). Even if it is, it's certainly a project of much bigger
magnitude...
[1]
https://twitter.com/alunny/statuses/213870117933694976
--
David Majda
Entropy fighter
http://majda.cz/