Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Grammar LanguageNew to Visual Studio Code? Get it now.
Grammar Language

Grammar Language

Jason Nagy

|
466 installs
| (0) | Free
Highlighting for grammar productions.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

language-bnf-grammars VS Code Extension

About

language-bnf-grammars is a collection of TextMate grammars for highlighting syntax for several BNF and BNF-inspired grammar syntaxes. The provided syntaxes are BNF, ABNF, EBNF and Regular BNF. A BNF-inspired, high level, generic "Grammar" syntax is also provided.

The BNF, ABNF, EBNF and Regular BNF syntaxes are taken from http://www.cs.man.ac.uk/~pjj/bnf/ebnf.html, specifically the BNF, ABNF (RFC2234), ISO EBNF and EBNF for XML.

The "Grammar" syntax is

BNF is configured for files ending with .bnf, ABNF for .abnf, EBNF for .ebnf and Regular BNF for .regbnf or .ebnf

Credits

  • Created by Jason
  • BNF grammars created by their respective creators
  • VS Code package based on gctse's Github example
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft