UNPKG

398 BJavaScriptView Raw
1hljs.registerLanguage("ebnf",(()=>{"use strict";return e=>{
2const a=e.COMMENT(/\(\*/,/\*\)/);return{name:"Extended Backus-Naur Form",
3illegal:/\S/,contains:[a,{className:"attribute",
4begin:/^[ ]*[a-zA-Z]+([\s_-]+[a-zA-Z]+)*/},{begin:/=/,end:/[.;]/,contains:[a,{
5className:"meta",begin:/\?.*\?/},{className:"string",
6variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"`",end:"`"}]}]}]}}
7})());
\No newline at end of file