text/js/asciidoc-C3rtDKIN.chunk.mjs...

1 строка
8.9 KiB
Plaintext

{"version":3,"file":"asciidoc-C3rtDKIN.chunk.mjs","sources":["../node_modules/highlight.js/lib/languages/asciidoc.js"],"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 const regex = hljs.regex;\n const HORIZONTAL_RULE = {\n begin: '^\\'{3,}[ \\\\t]*$',\n relevance: 10\n };\n const ESCAPED_FORMATTING = [\n // escaped constrained formatting marks (i.e., \\* \\_ or \\`)\n { begin: /\\\\[*_`]/ },\n // escaped unconstrained formatting marks (i.e., \\\\** \\\\__ or \\\\``)\n // must ignore until the next formatting marks\n // this rule might not be 100% compliant with Asciidoctor 2.0 but we are entering undefined behavior territory...\n { begin: /\\\\\\\\\\*{2}[^\\n]*?\\*{2}/ },\n { begin: /\\\\\\\\_{2}[^\\n]*_{2}/ },\n { begin: /\\\\\\\\`{2}[^\\n]*`{2}/ },\n // guard: constrained formatting mark may not be preceded by \":\", \";\" or\n // \"}\". match these so the constrained rule doesn't see them\n { begin: /[:;}][*_`](?![*_`])/ }\n ];\n const STRONG = [\n // inline unconstrained strong (single line)\n {\n className: 'strong',\n begin: /\\*{2}([^\\n]+?)\\*{2}/\n },\n // inline unconstrained strong (multi-line)\n {\n className: 'strong',\n begin: regex.concat(\n /\\*\\*/,\n /((\\*(?!\\*)|\\\\[^\\n]|[^*\\n\\\\])+\\n)+/,\n /(\\*(?!\\*)|\\\\[^\\n]|[^*\\n\\\\])*/,\n /\\*\\*/\n ),\n relevance: 0\n },\n // inline constrained strong (single line)\n {\n className: 'strong',\n // must not precede or follow a word character\n begin: /\\B\\*(\\S|\\S[^\\n]*?\\S)\\*(?!\\w)/\n },\n // inline constrained strong (multi-line)\n {\n className: 'strong',\n // must not precede or follow a word character\n begin: /\\*[^\\s]([^\\n]+\\n)+([^\\n]+)\\*/\n }\n ];\n const EMPHASIS = [\n // inline unconstrained emphasis (single line)\n {\n className: 'emphasis',\n begin: /_{2}([^\\n]+?)_{2}/\n },\n // inline unconstrained emphasis (multi-line)\n {\n className: 'emphasis',\n begin: regex.concat(\n /__/,\n /((_(?!_)|\\\\[^\\n]|[^_\\n\\\\])+\\n)+/,\n /(_(?!_)|\\\\[^\\n]|[^_\\n\\\\])*/,\n /__/\n ),\n relevance: 0\n },\n // inline constrained emphasis (single line)\n {\n className: 'emphasis',\n // must not precede or follow a word character\n begin: /\\b_(\\S|\\S[^\\n]*?\\S)_(?!\\w)/\n },\n // inline constrained emphasis (multi-line)\n {\n className: 'emphasis',\n // must not precede or follow a word character\n begin: /_[^\\s]([^\\n]+\\n)+([^\\n]+)_/\n },\n // inline constrained emphasis using single quote (legacy)\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 {\n begin: '\\\\\\\\\\'\\\\w',\n relevance: 0\n }\n ],\n relevance: 0\n }\n ];\n const ADMONITION = {\n className: 'symbol',\n begin: '^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\\\s+',\n relevance: 10\n };\n const BULLET_LIST = {\n className: 'bullet',\n begin: '^(\\\\*+|-+|\\\\.+|[^\\\\n]+?::)\\\\s+'\n };\n\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 { relevance: 10 }\n ),\n // line comment\n hljs.COMMENT(\n '^//',\n '$',\n { relevance: 0 }\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 { begin: '^(={1,6})[ \\t].+?([ \\t]\\\\1)?$' },\n { begin: '^[^\\\\[\\\\]\\\\n]+?\\\\n[=\\\\-~\\\\^\\\\+]{2,}$' }\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 {\n begin: '<',\n end: '>',\n subLanguage: 'xml',\n relevance: 0\n }\n ],\n relevance: 10\n },\n\n BULLET_LIST,\n ADMONITION,\n ...ESCAPED_FORMATTING,\n ...STRONG,\n ...EMPHASIS,\n\n // inline smart quotes\n {\n className: 'string',\n variants: [\n { begin: \"``.+?''\" },\n { begin: \"`.+?'\" }\n ]\n },\n // inline unconstrained emphasis\n {\n className: 'code',\n begin: /`{2}/,\n end: /(\\n{2}|`{2})/\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_RULE,\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"],"names":["asciidoc","hljs","regex","HORIZONTAL_RULE","ESCAPED_FORMATTING","STRONG","EMPHASIS","ADMONITION","BULLET_LIST","asciidoc_1"],"mappings":";uYAUA,SAASA,EAASC,EAAM,CACtB,MAAMC,EAAQD,EAAK,MACbE,EAAkB,CACtB,MAAO,iBACP,UAAW,EACf,EACQC,EAAqB,CAEzB,CAAE,MAAO,SAAW,EAIpB,CAAE,MAAO,uBAAyB,EAClC,CAAE,MAAO,oBAAsB,EAC/B,CAAE,MAAO,oBAAsB,EAG/B,CAAE,MAAO,qBAAuB,CACpC,EACQC,EAAS,CAEb,CACE,UAAW,SACX,MAAO,qBACR,EAED,CACE,UAAW,SACX,MAAOH,EAAM,OACX,OACA,oCACA,+BACA,MACD,EACD,UAAW,CACZ,EAED,CACE,UAAW,SAEX,MAAO,8BACR,EAED,CACE,UAAW,SAEX,MAAO,8BACR,CACL,EACQI,EAAW,CAEf,CACE,UAAW,WACX,MAAO,mBACR,EAED,CACE,UAAW,WACX,MAAOJ,EAAM,OACX,KACA,kCACA,6BACA,IACD,EACD,UAAW,CACZ,EAED,CACE,UAAW,WAEX,MAAO,4BACR,EAED,CACE,UAAW,WAEX,MAAO,4BACR,EAED,CACE,UAAW,WAEX,MAAO,iBACP,IAAK,aAEL,SAAU,CACR,CACE,MAAO,WACP,UAAW,CACZ,CACF,EACD,UAAW,CACZ,CACL,EACQK,EAAa,CACjB,UAAW,SACX,MAAO,6CACP,UAAW,EACf,EACQC,EAAc,CAClB,UAAW,SACX,MAAO,gCACX,EAEE,MAAO,CACL,KAAM,WACN,QAAS,CAAE,MAAQ,EACnB,SAAU,CAERP,EAAK,QACH,YACA,YAIA,CAAE,UAAW,EAAI,CAClB,EAEDA,EAAK,QACH,MACA,IACA,CAAE,UAAW,CAAG,CACjB,EAED,CACE,UAAW,QACX,MAAO,YACR,EAED,CACE,MAAO,iBACP,IAAK,kBACL,UAAW,EACZ,EAED,CACE,UAAW,UACX,UAAW,GACX,SAAU,CACR,CAAE,MAAO,6BAAiC,EAC1C,CAAE,MAAO,sCAAwC,CAClD,CACF,EAED,CACE,UAAW,OACX,MAAO,SACP,IAAK,MACL,WAAY,GACZ,UAAW,EACZ,EAED,CACE,UAAW,OACX,MAAO,cACP,UAAW,CACZ,EAED,CACE,UAAW,QACX,MAAO,YACP,IAAK,YACL,UAAW,EACZ,EAED,CACE,UAAW,OACX,MAAO,mBACP,IAAK,mBACL,UAAW,EACZ,EAED,CACE,MAAO,cACP,IAAK,cACL,SAAU,CACR,CACE,MAAO,IACP,IAAK,IACL,YAAa,MACb,UAAW,CACZ,CACF,EACD,UAAW,EACZ,EAEDO,EACAD,EACA,GAAGH,EACH,GAAGC,EACH,GAAGC,EAGH,CACE,UAAW,SACX,SAAU,CACR,CAAE,MAAO,SAAW,EACpB,CAAE,MAAO,OAAS,CACnB,CACF,EAED,CACE,UAAW,OACX,MAAO,OACP,IAAK,cACN,EAED,CACE,UAAW,OACX,MAAO,oBACP,UAAW,CACZ,EAED,CACE,UAAW,OACX,MAAO,UACP,IAAK,IACL,UAAW,CACZ,EACDH,EAEA,CACE,MAAO,8DACP,YAAa,GACb,SAAU,CACR,CACE,MAAO,kBACP,UAAW,CACZ,EACD,CACE,UAAW,OACX,MAAO,MACP,IAAK,UACL,UAAW,CACZ,EACD,CACE,UAAW,SACX,MAAO,MACP,IAAK,MACL,aAAc,GACd,WAAY,GACZ,UAAW,CACZ,CACF,EACD,UAAW,EACZ,CACF,CACL,CACA,CAEA,IAAAM,EAAiBT","x_google_ignoreList":[0]}