Syntax highlighting for Labelled BNF, a variant of BNF used in the compiler construction tool bnfc.
Based on the vim script available at http://www.vim.org/scripts/script.php?script_id=1470. The script was extended with support for most of the syntax described in the LBNF reference.
Do any of the following:
-
Use vim-plug and put
Plug 'dkasak/lbnf.vim'
in the vim-plug plugin section of your vimrc.
-
Use another vim plugin manager.
-
Install
lbnf.vim
manually in~/.vim/syntax/
or equivalent.