/pegjs-vim

vim syntax highlight for PEG.js grammars

Primary LanguageVimL

pegjs.vim

Syntax highlighting for PEGjs files in VIM.

Enough to be useful - feedback/patches welcome.

Usage

$ vim myAwesomeGrammar.pegjs
:syntax on
:setf pegjs

Installation

The easiest way is to install using pathogen.vim:

cd ~/.vim/bundle
git clone https://github.com/alunny/pegjs-vim

If you do not want to use pathogen. You can always install pegjs-vim in the normal manner by copying each directory to your ~/.vim directory. Make sure not to overwrite any existing directory of the same name and instead copy only the contents of the source directory to the directory of the same name in your ~/.vim directory.

Important

License

MIT