1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2024-12-21 07:33:54 +01:00
LocalCDN-Firefox-Chrome-Brave/resources/highlight.js/10.7.3/ebnf.min.jsm

7 lines
398 B
JavaScript

hljs.registerLanguage("ebnf",(()=>{"use strict";return e=>{
const a=e.COMMENT(/\(\*/,/\*\)/);return{name:"Extended Backus-Naur Form",
illegal:/\S/,contains:[a,{className:"attribute",
begin:/^[ ]*[a-zA-Z]+([\s_-]+[a-zA-Z]+)*/},{begin:/=/,end:/[.;]/,contains:[a,{
className:"meta",begin:/\?.*\?/},{className:"string",
variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"`",end:"`"}]}]}]}}
})());