sponsor Vim development Vim logo Vim Book Ad

ebnf.vim : Extended BNF (ISO/IEC 14977) Syntax

 script karma  Rating 21/13, Downloaded by 2875  Comments, bugs, improvements  Vim wiki

created by
Hans Fugal
script type
Syntax file for EBNF as specified by ISO/IEC 14977 : 1996(E)

EBNF is slightly different from most homegrown BNF.  Terminals are always quoted, non-terminals are not (and may contain spaces). Kleene closure is achieved by enclosing with braces, 0-or-1 matches with brackets, 1-or-more matches by appending "-" to the end of the braces (i.e. {one non-terminal, second non-terminal}- ). Atoms are separated by "," or "|". A production rule ends with ";" or ".". Comments are (* comment *)

For more information on EBNF see http://www.cl.cam.ac.uk/~mgk25/iso-ebnf.html
install details
Save in $VIMRUNTIME/syntax/
:help new-filetype

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
ebnf.vim 1.1 2003-01-28 6.0 Hans Fugal Initial upload
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
Vim at Github