Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
vim syntax highlight for PEG.js grammars
VimL
Branch: master

Merge pull request #5 from michaelficarra/patch-1

fixes #4: highlight JavaScript within JavaScript code blocks
latest commit 2b291b6dac
@alunny authored

README.md

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

Something went wrong with that request. Please try again.