1
|
{"version":3,"file":"highlight/ebnf.js?v=f8826c4c127555845dfe","mappings":"4GAoDAA,EAAOC,QA7CP,SAAcC,GACZ,MAAMC,EAAcD,EAAKE,QAAQ,OAAQ,QAiCzC,MAAO,CACLC,KAAM,4BACNC,QAAS,KACTC,SAAU,CACRJ,EAnCoB,CACtBK,UAAW,YACXC,MAAO,qCAQY,CACnBA,MAAO,IACPC,IAAK,OACLH,SAAU,CACRJ,EATwB,CAC1BK,UAAW,OACXC,MAAO,UASL,CAEED,UAAW,SACXG,SAAU,CACRT,EAAKU,iBACLV,EAAKW,kBACL,CACEJ,MAAO,IACPC,IAAK","sources":["webpack:///text/node_modules/highlight.js/lib/languages/ebnf.js"],"sourcesContent":["/*\nLanguage: Extended Backus-Naur Form\nAuthor: Alex McKibben <alex@nullscope.net>\nWebsite: https://en.wikipedia.org/wiki/Extended_Backus–Naur_form\n*/\n\n/** @type LanguageFn */\nfunction ebnf(hljs) {\n const commentMode = hljs.COMMENT(/\\(\\*/, /\\*\\)/);\n\n const nonTerminalMode = {\n className: \"attribute\",\n begin: /^[ ]*[a-zA-Z]+([\\s_-]+[a-zA-Z]+)*/\n };\n\n const specialSequenceMode = {\n className: \"meta\",\n begin: /\\?.*\\?/\n };\n\n const ruleBodyMode = {\n begin: /=/,\n end: /[.;]/,\n contains: [\n commentMode,\n specialSequenceMode,\n {\n // terminals\n className: 'string',\n variants: [\n hljs.APOS_STRING_MODE,\n hljs.QUOTE_STRING_MODE,\n {\n begin: '`',\n end: '`'\n }\n ]\n }\n ]\n };\n\n return {\n name: 'Extended Backus-Naur Form',\n illegal: /\\S/,\n contains: [\n commentMode,\n nonTerminalMode,\n ruleBodyMode\n ]\n };\n}\n\nmodule.exports = ebnf;\n"],"names":["module","exports","hljs","commentMode","COMMENT","name","illegal","contains","className","begin","end","variants","APOS_STRING_MODE","QUOTE_STRING_MODE"],"sourceRoot":""}
|