Skip to content

Patched and modernised version of the GOLD parsing system's old Vim extension.

License

Notifications You must be signed in to change notification settings

Alhadis/vim-grm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Installation

Using the built-in package manager (Vim 8+)

$ mkdir -p ~/.vim/pack
$ cd ~/.vim/pack
$ git clone https://github.com/Alhadis/vim-grm.git

Using a third-party package manager

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'

Background

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.