GOLD grammar support for Vim
This is a refactored and slightly-improved repackaging of the GOLD Parsing system's old Vim extension, which hasn't been updated since 2002. The GOLD project itself appears to be abandoned, with no GitHub presence I know of.
$ mkdir -p ~/.vim/pack
$ cd ~/.vim/pack
$ git clone https://github.com/Alhadis/vim-grm.git
Caveat lector — I've not tested any of these. YMMV.
" ~/.vimrc
set nocompatible
call dein#add('Alhadis/vim-grm')
" ~/.vimrc
NeoBundle 'Alhadis/vim-grm'
Run the following in your terminal:
$ mkdir -p ~/.vim/bundle
$ cd ~/.vim/bundle
$ git clone https://github.com/Alhadis/vim-grm.git
You may need to restart Vim before the package can work properly.
" ~/.vimrc
Plug 'Alhadis/vim-grm'
" ~/.vimrc
Plugin 'Alhadis/vim-grm'
I only learned of GOLD's grammar format through bottlecaps.de/convert
, which
supports *.grm
files as input. Admittedly, my interest in GOLD extends no further
than syntax highlighting.
I only cleaned this file up because I wanted to compare Vim's highlighting with the
unfinished TextMate grammar I started work on for Alhadis/language-grammars
.
I've nonetheless endeavoured to do The Right Thing™ and flesh everything out like a
proper Vim package, if just to sate a completionist itch.