Skip to content

dylon/vim-antlr

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 100.0%