ebnf.min.js 470 B

1234567
  1. /*! `ebnf` grammar compiled for Highlight.js 11.7.0 */
  2. (()=>{var e=(()=>{"use strict";return e=>{const a=e.COMMENT(/\(\*/,/\*\)/)
  3. ;return{name:"Extended Backus-Naur Form",illegal:/\S/,contains:[a,{
  4. className:"attribute",begin:/^[ ]*[a-zA-Z]+([\s_-]+[a-zA-Z]+)*/},{begin:/=/,
  5. end:/[.;]/,contains:[a,{className:"meta",begin:/\?.*\?/},{className:"string",
  6. variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"`",end:"`"}]}]}]}}})()
  7. ;hljs.registerLanguage("ebnf",e)})();