dylon / vim-antlr

Syntax highlighter for ANTLR files in vim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vim-antlr

Vim, syntax highlighting for ANTLR versions 3 and 4.

Installation

Pathogen

cd ~/.vim/bundle && \
git clone https://github.com/dylon/vim-antlr.git

See pathogen.vim for more info.

Manual

Download and install the syntax files from the command line:

mkdir -p "$HOME/.vim/syntax"
curl -LSso "$HOME/.vim/syntax/antlr3.vim" "https://raw.githubusercontent.com/dylon/vim-antlr/master/syntax/antlr3.vim"
curl -LSso "$HOME/.vim/syntax/antlr4.vim" "https://raw.githubusercontent.com/dylon/vim-antlr/master/syntax/antlr4.vim"

Then add the following to your .vimrc:

au BufRead,BufNewFile *.g set filetype=antlr3
au BufRead,BufNewFile *.g4 set filetype=antlr4

About

Syntax highlighter for ANTLR files in vim

License:MIT License


Languages

Language:Vim Script 100.0%