1
|
{"version":3,"sources":["webpack:///./node_modules/highlight.js/lib/languages/asciidoc.js"],"names":["module","exports","hljs","name","aliases","contains","COMMENT","relevance","className","begin","end","variants","excludeEnd","subLanguage","returnBegin","excludeBegin"],"mappings":"mGA0MAA,EAAOC,QAhMP,SAAkBC,GAChB,MAAO,CACLC,KAAM,WACNC,QAAS,CAAC,QACVC,SAAU,CAERH,EAAKI,QACH,YACA,YAIA,CACEC,UAAW,KAIfL,EAAKI,QACH,MACA,IACA,CACEC,UAAW,IAIf,CACEC,UAAW,QACXC,MAAO,cAGT,CACEA,MAAO,iBACPC,IAAK,kBACLH,UAAW,IAGb,CACEC,UAAW,UACXD,UAAW,GACXI,SAAU,CACR,CACEF,MAAO,yBAET,CACEA,MAAO,0CAKb,CACED,UAAW,OACXC,MAAO,SACPC,IAAK,MACLE,YAAY,EACZL,UAAW,IAGb,CACEC,UAAW,OACXC,MAAO,cACPF,UAAW,GAGb,CACEC,UAAW,QACXC,MAAO,YACPC,IAAK,YACLH,UAAW,IAGb,CACEC,UAAW,OACXC,MAAO,mBACPC,IAAK,mBACLH,UAAW,IAGb,CACEE,MAAO,cACPC,IAAK,cACLL,SAAU,CAAC,CACTI,MAAO,IACPC,IAAK,IACLG,YAAa,MACbN,UAAW,IAEbA,UAAW,IAGb,CACEC,UAAW,SACXC,MAAO,kCAGT,CACED,UAAW,SACXC,MAAO,6CACPF,UAAW,IAGb,CACEC,UAAW,SAEXC,MAAO,qBACPC,IAAK,eAELL,SAAU,CAAC,CACTI,MAAO,WACPF,UAAW,KAIf,CACEC,UAAW,WAEXC,MAAO,iBACPC,IAAK,aAELL,SAAU,CAAC,CACTI,MAAO,WACPF,UAAW,IAEbA,UAAW,GAGb,CACEC,UAAW,WAEXC,MAAO,cACPC,IAAK,aACLH,UAAW,GAGb,CACEC,UAAW,SACXG,SAAU,CACR,CACEF,MAAO,WAET,CACEA,MAAO,WAKb,CACED,UAAW,OACXC,MAAO,oBACPF,UAAW,GAGb,CACEC,UAAW,OACXC,MAAO,UACPC,IAAK,IACLH,UAAW,GAGb,CACEE,MAAO,iBACPF,UAAW,IAGb,CACEE,MAAO,8DACPK,aAAa,EACbT,SAAU,CACR,CACEI,MAAO,kBACPF,UAAW,GAEb,CACEC,UAAW,OACXC,MAAO,MACPC,IAAK,UACLH,UAAW,GAEb,CACEC,UAAW,SACXC,MAAO,MACPC,IAAK,MACLK,cAAc,EACdH,YAAY,EACZL,UAAW,IAGfA,UAAW","file":"highlight/asciidoc.js?v=855e393361630725f54f","sourcesContent":["/*\nLanguage: AsciiDoc\nRequires: xml.js\nAuthor: Dan Allen <dan.j.allen@gmail.com>\nWebsite: http://asciidoc.org\nDescription: A semantic, text-based document format that can be exported to HTML, DocBook and other backends.\nCategory: markup\n*/\n\n/** @type LanguageFn */\nfunction asciidoc(hljs) {\n return {\n name: 'AsciiDoc',\n aliases: ['adoc'],\n contains: [\n // block comment\n hljs.COMMENT(\n '^/{4,}\\\\n',\n '\\\\n/{4,}$',\n // can also be done as...\n // '^/{4,}$',\n // '^/{4,}$',\n {\n relevance: 10\n }\n ),\n // line comment\n hljs.COMMENT(\n '^//',\n '$',\n {\n relevance: 0\n }\n ),\n // title\n {\n className: 'title',\n begin: '^\\\\.\\\\w.*$'\n },\n // example, admonition & sidebar blocks\n {\n begin: '^[=\\\\*]{4,}\\\\n',\n end: '\\\\n^[=\\\\*]{4,}$',\n relevance: 10\n },\n // headings\n {\n className: 'section',\n relevance: 10,\n variants: [\n {\n begin: '^(={1,5}) .+?( \\\\1)?$'\n },\n {\n begin: '^[^\\\\[\\\\]\\\\n]+?\\\\n[=\\\\-~\\\\^\\\\+]{2,}$'\n }\n ]\n },\n // document attributes\n {\n className: 'meta',\n begin: '^:.+?:',\n end: '\\\\s',\n excludeEnd: true,\n relevance: 10\n },\n // block attributes\n {\n className: 'meta',\n begin: '^\\\\[.+?\\\\]$',\n relevance: 0\n },\n // quoteblocks\n {\n className: 'quote',\n begin: '^_{4,}\\\\n',\n end: '\\\\n_{4,}$',\n relevance: 10\n },\n // listing and literal blocks\n {\n className: 'code',\n begin: '^[\\\\-\\\\.]{4,}\\\\n',\n end: '\\\\n[\\\\-\\\\.]{4,}$',\n relevance: 10\n },\n // passthrough blocks\n {\n begin: '^\\\\+{4,}\\\\n',\n end: '\\\\n\\\\+{4,}$',\n contains: [{\n begin: '<',\n end: '>',\n subLanguage: 'xml',\n relevance: 0\n }],\n relevance: 10\n },\n // lists (can only capture indicators)\n {\n className: 'bullet',\n begin: '^(\\\\*+|-+|\\\\.+|[^\\\\n]+?::)\\\\s+'\n },\n // admonition\n {\n className: 'symbol',\n begin: '^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\\\s+',\n relevance: 10\n },\n // inline strong\n {\n className: 'strong',\n // must not follow a word character or be followed by an asterisk or space\n begin: '\\\\B\\\\*(?![\\\\*\\\\s])',\n end: '(\\\\n{2}|\\\\*)',\n // allow escaped asterisk followed by word char\n contains: [{\n begin: '\\\\\\\\*\\\\w',\n relevance: 0\n }]\n },\n // inline emphasis\n {\n className: 'emphasis',\n // must not follow a word character or be followed by a single quote or space\n begin: '\\\\B\\'(?![\\'\\\\s])',\n end: '(\\\\n{2}|\\')',\n // allow escaped single quote followed by word char\n contains: [{\n begin: '\\\\\\\\\\'\\\\w',\n relevance: 0\n }],\n relevance: 0\n },\n // inline emphasis (alt)\n {\n className: 'emphasis',\n // must not follow a word character or be followed by an underline or space\n begin: '_(?![_\\\\s])',\n end: '(\\\\n{2}|_)',\n relevance: 0\n },\n // inline smart quotes\n {\n className: 'string',\n variants: [\n {\n begin: \"``.+?''\"\n },\n {\n begin: \"`.+?'\"\n }\n ]\n },\n // inline code snippets (TODO should get same treatment as strong and emphasis)\n {\n className: 'code',\n begin: '(`.+?`|\\\\+.+?\\\\+)',\n relevance: 0\n },\n // indented literal block\n {\n className: 'code',\n begin: '^[ \\\\t]',\n end: '$',\n relevance: 0\n },\n // horizontal rules\n {\n begin: '^\\'{3,}[ \\\\t]*$',\n relevance: 10\n },\n // images and links\n {\n begin: '(link:)?(http|https|ftp|file|irc|image:?):\\\\S+?\\\\[[^[]*?\\\\]',\n returnBegin: true,\n contains: [\n {\n begin: '(link|image:?):',\n relevance: 0\n },\n {\n className: 'link',\n begin: '\\\\w',\n end: '[^\\\\[]+',\n relevance: 0\n },\n {\n className: 'string',\n begin: '\\\\[',\n end: '\\\\]',\n excludeBegin: true,\n excludeEnd: true,\n relevance: 0\n }\n ],\n relevance: 10\n }\n ]\n };\n}\n\nmodule.exports = asciidoc;\n"],"sourceRoot":""}
|