Syntax highlighter and indenter for PEG files in VIM.
Copyright © 2021-2022 Taeber Rapczak <[email protected]>
License: MIT
vim -c 'syntax on' -c 'setfiletype peg' grammar.peg
Using Vim 8 packages:
git clone https://github.com/taeber/vim-peg ~/.vim/pack/plugins/start/vim-peg
Using pathogen:
git clone https://github.com/taeber/vim-peg ~/.vim/bundles/vim-peg
- Bryan Ford's original 2004 paper: Parsing Expression Grammars: A Recognition-Based Syntactic Foundation
- Writing Vim Syntax Plugins
- Create your own syntax files
- pegjs.vim