Vim, syntax highlighting for ANTLR versions 3 and 4.
cd ~/.vim/bundle && \
git clone https://github.com/dylon/vim-antlr.git
See pathogen.vim for more info.
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