W3C BNF
Author: CrissovCreated Oct 10, 2021Updated Apr 6, 2026
LabelsAdd LanguageGood First Issue
Language name
Some variants of Backus-Naur Form (BNF) are already supported. As noted in #3075, there are significant difference between ISO EBNF and W3C EBNF. Only the former is properly supported yet.
Side note: the latter should really be known as “WEBNF”. Missed opportunities.
URL of example repository
Specs and issues in @w3c use EBNF frequently.
URL of syntax highlighting grammar
— (VDS)
Most popular extensions
—, .ebnf and .bnf probably.
Files with only formal grammar in them are rare. Code blocks in Markdown/GFM are way more common.
Detected language
ISO EBNF
Source: github-linguist/linguist