1
|
{"version":3,"sources":["webpack:///./node_modules/highlight.js/lib/languages/abnf.js"],"names":["module","exports","hljs","regexes","commentMode","COMMENT","ruleDeclarationMode","className","begin","illegal","keywords","join","contains","QUOTE_STRING_MODE","NUMBER_MODE"],"mappings":"mFAAAA,EAAOC,QAAU,SAASC,GACtB,IAAIC,EACiB,yBADjBA,EAEiB,mBAsBjBC,EAAcF,EAAKG,QAAQ,IAAK,KAsBhCC,EAAsB,CACtBC,UAAW,YACXC,MAAOL,EAA0B,aAGrC,MAAO,CACLM,QAASN,EACTO,SAhDa,CACX,QACA,MACA,OACA,KACA,OACA,MACA,QACA,SACA,SACA,OACA,KACA,OACA,QACA,KACA,QACA,OAgCiBC,KAAK,KACxBC,SAAU,CACNN,EACAF,EA9BmB,CACrBG,UAAW,SACXC,MAAO,sCAGe,CACtBD,UAAW,SACXC,MAAO,sCAGmB,CAC1BD,UAAW,SACXC,MAAO,+CAGwB,CAC/BD,UAAW,SACXC,MAAO,SAkBLN,EAAKW,kBACLX,EAAKY","file":"highlight/abnf.js?v=97aab9f1a2008c3a0d9b","sourcesContent":["module.exports = function(hljs) {\n var regexes = {\n ruleDeclaration: \"^[a-zA-Z][a-zA-Z0-9-]*\",\n unexpectedChars: \"[!@#$^&',?+~`|:]\"\n };\n\n var keywords = [\n \"ALPHA\",\n \"BIT\",\n \"CHAR\",\n \"CR\",\n \"CRLF\",\n \"CTL\",\n \"DIGIT\",\n \"DQUOTE\",\n \"HEXDIG\",\n \"HTAB\",\n \"LF\",\n \"LWSP\",\n \"OCTET\",\n \"SP\",\n \"VCHAR\",\n \"WSP\"\n ];\n\n var commentMode = hljs.COMMENT(\";\", \"$\");\n\n var terminalBinaryMode = {\n className: \"symbol\",\n begin: /%b[0-1]+(-[0-1]+|(\\.[0-1]+)+){0,1}/\n };\n\n var terminalDecimalMode = {\n className: \"symbol\",\n begin: /%d[0-9]+(-[0-9]+|(\\.[0-9]+)+){0,1}/\n };\n\n var terminalHexadecimalMode = {\n className: \"symbol\",\n begin: /%x[0-9A-F]+(-[0-9A-F]+|(\\.[0-9A-F]+)+){0,1}/,\n };\n\n var caseSensitivityIndicatorMode = {\n className: \"symbol\",\n begin: /%[si]/\n };\n\n var ruleDeclarationMode = {\n className: \"attribute\",\n begin: regexes.ruleDeclaration + '(?=\\\\s*=)',\n };\n\n return {\n illegal: regexes.unexpectedChars,\n keywords: keywords.join(\" \"),\n contains: [\n ruleDeclarationMode,\n commentMode,\n terminalBinaryMode,\n terminalDecimalMode,\n terminalHexadecimalMode,\n caseSensitivityIndicatorMode,\n hljs.QUOTE_STRING_MODE,\n hljs.NUMBER_MODE\n ]\n };\n};"],"sourceRoot":""}
|