Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>BNF HighlightingNew to Visual Studio Code? Get it now.
BNF Highlighting

BNF Highlighting

darthwalsh

|
1,441 installs
| (0) | Free
BNF for Visual Studio Code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode-bnf for YAML's BNF flavor

Version Installs

This extension adds BNF syntax highlighting to Visual Studio Code.

Files with the extension .bnf will automatically be highlighting.

Some differences with standard BNF grammar:

  • /* C-style comments */
  • Unquoted unicode escape sequences like #xFEFF
  • Production names can have a parenthesized context like s-indent(<n)
  • Add operators ⇒ and ×

Syntax Highlighting

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft