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