Skip to content

egberts/vim-syntax-ebnf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vim-syntax-ebnf

EBNF Syntax Highlighter for VimL-class editors (NeoVim, Vim, but not Vi).

This is the better EBNF highlighters than most of the ones I've tried on GitHub.

It covers:

Style Name Rule Terminal Non Terminal Concat Choice Optional
BNF BNF (Algol 60) <name>::=... ... <...>   '|' note1
Intermediate ANSI C name:\n... ... bold italics   indented line one of
Intermediate BNF-like description of URLs name\n ... ... ... '|' [...]
Wirth Wirth name=... . ... ... [...]
Wirth SAIF and Bungisoft <name>::=... ... <...> '|' [...]
Wirth EBNF from Compiler Basics by J.A.Farrell name:==... '...' ...   '|' or [... | ...] [...]
Wirth Pascal EBNF Definition name\n...  ...\nbold <...>  '|' '[...]'
Wirth ISO Extended Pascal name=... .\nname\>... . '...' ... ', '|' [...]
Wirth ISO EBNF name=...; '...'\n... ... ',' '|' [...]
ABNF EBNF from RFC822 (superceded by ABNF) name=... integer\n\"...\" ...\n<...>   '/' [...]
ABNF ABNF (RFC2234) name=... integer\n\"...\" ...\n<...> '/' [...]

BNF

Rarely used, yet not a Chomskey Normal Form (CNF) either.

EBNF, IETF

References

Thanks to @Chubek of GitHub over at https://gist.github.com/Chubek/886580036f37bda5d6023595821afa51