зеркало из https://github.com/nextcloud/text.git
1 строка
6.8 KiB
Plaintext
1 строка
6.8 KiB
Plaintext
{"version":3,"file":"dart-DHnHMu8I.chunk.mjs","sources":["../node_modules/highlight.js/lib/languages/dart.js"],"sourcesContent":["/*\nLanguage: Dart\nRequires: markdown.js\nAuthor: Maxim Dikun <dikmax@gmail.com>\nDescription: Dart a modern, object-oriented language developed by Google. For more information see https://www.dartlang.org/\nWebsite: https://dart.dev\nCategory: scripting\n*/\n\n/** @type LanguageFn */\nfunction dart(hljs) {\n const SUBST = {\n className: 'subst',\n variants: [ { begin: '\\\\$[A-Za-z0-9_]+' } ]\n };\n\n const BRACED_SUBST = {\n className: 'subst',\n variants: [\n {\n begin: /\\$\\{/,\n end: /\\}/\n }\n ],\n keywords: 'true false null this is new super'\n };\n\n const STRING = {\n className: 'string',\n variants: [\n {\n begin: 'r\\'\\'\\'',\n end: '\\'\\'\\''\n },\n {\n begin: 'r\"\"\"',\n end: '\"\"\"'\n },\n {\n begin: 'r\\'',\n end: '\\'',\n illegal: '\\\\n'\n },\n {\n begin: 'r\"',\n end: '\"',\n illegal: '\\\\n'\n },\n {\n begin: '\\'\\'\\'',\n end: '\\'\\'\\'',\n contains: [\n hljs.BACKSLASH_ESCAPE,\n SUBST,\n BRACED_SUBST\n ]\n },\n {\n begin: '\"\"\"',\n end: '\"\"\"',\n contains: [\n hljs.BACKSLASH_ESCAPE,\n SUBST,\n BRACED_SUBST\n ]\n },\n {\n begin: '\\'',\n end: '\\'',\n illegal: '\\\\n',\n contains: [\n hljs.BACKSLASH_ESCAPE,\n SUBST,\n BRACED_SUBST\n ]\n },\n {\n begin: '\"',\n end: '\"',\n illegal: '\\\\n',\n contains: [\n hljs.BACKSLASH_ESCAPE,\n SUBST,\n BRACED_SUBST\n ]\n }\n ]\n };\n BRACED_SUBST.contains = [\n hljs.C_NUMBER_MODE,\n STRING\n ];\n\n const BUILT_IN_TYPES = [\n // dart:core\n 'Comparable',\n 'DateTime',\n 'Duration',\n 'Function',\n 'Iterable',\n 'Iterator',\n 'List',\n 'Map',\n 'Match',\n 'Object',\n 'Pattern',\n 'RegExp',\n 'Set',\n 'Stopwatch',\n 'String',\n 'StringBuffer',\n 'StringSink',\n 'Symbol',\n 'Type',\n 'Uri',\n 'bool',\n 'double',\n 'int',\n 'num',\n // dart:html\n 'Element',\n 'ElementList'\n ];\n const NULLABLE_BUILT_IN_TYPES = BUILT_IN_TYPES.map((e) => `${e}?`);\n\n const BASIC_KEYWORDS = [\n \"abstract\",\n \"as\",\n \"assert\",\n \"async\",\n \"await\",\n \"base\",\n \"break\",\n \"case\",\n \"catch\",\n \"class\",\n \"const\",\n \"continue\",\n \"covariant\",\n \"default\",\n \"deferred\",\n \"do\",\n \"dynamic\",\n \"else\",\n \"enum\",\n \"export\",\n \"extends\",\n \"extension\",\n \"external\",\n \"factory\",\n \"false\",\n \"final\",\n \"finally\",\n \"for\",\n \"Function\",\n \"get\",\n \"hide\",\n \"if\",\n \"implements\",\n \"import\",\n \"in\",\n \"interface\",\n \"is\",\n \"late\",\n \"library\",\n \"mixin\",\n \"new\",\n \"null\",\n \"on\",\n \"operator\",\n \"part\",\n \"required\",\n \"rethrow\",\n \"return\",\n \"sealed\",\n \"set\",\n \"show\",\n \"static\",\n \"super\",\n \"switch\",\n \"sync\",\n \"this\",\n \"throw\",\n \"true\",\n \"try\",\n \"typedef\",\n \"var\",\n \"void\",\n \"when\",\n \"while\",\n \"with\",\n \"yield\"\n ];\n\n const KEYWORDS = {\n keyword: BASIC_KEYWORDS,\n built_in:\n BUILT_IN_TYPES\n .concat(NULLABLE_BUILT_IN_TYPES)\n .concat([\n // dart:core\n 'Never',\n 'Null',\n 'dynamic',\n 'print',\n // dart:html\n 'document',\n 'querySelector',\n 'querySelectorAll',\n 'window'\n ]),\n $pattern: /[A-Za-z][A-Za-z0-9_]*\\??/\n };\n\n return {\n name: 'Dart',\n keywords: KEYWORDS,\n contains: [\n STRING,\n hljs.COMMENT(\n /\\/\\*\\*(?!\\/)/,\n /\\*\\//,\n {\n subLanguage: 'markdown',\n relevance: 0\n }\n ),\n hljs.COMMENT(\n /\\/{3,} ?/,\n /$/, { contains: [\n {\n subLanguage: 'markdown',\n begin: '.',\n end: '$',\n relevance: 0\n }\n ] }\n ),\n hljs.C_LINE_COMMENT_MODE,\n hljs.C_BLOCK_COMMENT_MODE,\n {\n className: 'class',\n beginKeywords: 'class interface',\n end: /\\{/,\n excludeEnd: true,\n contains: [\n { beginKeywords: 'extends implements' },\n hljs.UNDERSCORE_TITLE_MODE\n ]\n },\n hljs.C_NUMBER_MODE,\n {\n className: 'meta',\n begin: '@[A-Za-z]+'\n },\n { begin: '=>' // No markup, just a relevance booster\n }\n ]\n };\n}\n\nmodule.exports = dart;\n"],"names":["dart","hljs","SUBST","BRACED_SUBST","STRING","BUILT_IN_TYPES","NULLABLE_BUILT_IN_TYPES","e","dart_1"],"mappings":";4YAUA,SAASA,EAAKC,EAAM,CAClB,MAAMC,EAAQ,CACZ,UAAW,QACX,SAAU,CAAE,CAAE,MAAO,mBAAsB,CAC/C,EAEQC,EAAe,CACnB,UAAW,QACX,SAAU,CACR,CACE,MAAO,OACP,IAAK,IACN,CACF,EACD,SAAU,mCACd,EAEQC,EAAS,CACb,UAAW,SACX,SAAU,CACR,CACE,MAAO,OACP,IAAK,KACN,EACD,CACE,MAAO,OACP,IAAK,KACN,EACD,CACE,MAAO,KACP,IAAK,IACL,QAAS,KACV,EACD,CACE,MAAO,KACP,IAAK,IACL,QAAS,KACV,EACD,CACE,MAAO,MACP,IAAK,MACL,SAAU,CACRH,EAAK,iBACLC,EACAC,CACD,CACF,EACD,CACE,MAAO,MACP,IAAK,MACL,SAAU,CACRF,EAAK,iBACLC,EACAC,CACD,CACF,EACD,CACE,MAAO,IACP,IAAK,IACL,QAAS,MACT,SAAU,CACRF,EAAK,iBACLC,EACAC,CACD,CACF,EACD,CACE,MAAO,IACP,IAAK,IACL,QAAS,MACT,SAAU,CACRF,EAAK,iBACLC,EACAC,CACD,CACF,CACF,CACL,EACEA,EAAa,SAAW,CACtBF,EAAK,cACLG,CACJ,EAEE,MAAMC,EAAiB,CAErB,aACA,WACA,WACA,WACA,WACA,WACA,OACA,MACA,QACA,SACA,UACA,SACA,MACA,YACA,SACA,eACA,aACA,SACA,OACA,MACA,OACA,SACA,MACA,MAEA,UACA,aACJ,EACQC,EAA0BD,EAAe,IAAKE,GAAM,GAAGA,SAAC,IAAG,EA2FjE,MAAO,CACL,KAAM,OACN,SAtBe,CACf,QAtEqB,CACrB,WACA,KACA,SACA,QACA,QACA,OACA,QACA,OACA,QACA,QACA,QACA,WACA,YACA,UACA,WACA,KACA,UACA,OACA,OACA,SACA,UACA,YACA,WACA,UACA,QACA,QACA,UACA,MACA,WACA,MACA,OACA,KACA,aACA,SACA,KACA,YACA,KACA,OACA,UACA,QACA,MACA,OACA,KACA,WACA,OACA,WACA,UACA,SACA,SACA,MACA,OACA,SACA,QACA,SACA,OACA,OACA,QACA,OACA,MACA,UACA,MACA,OACA,OACA,QACA,OACA,OACJ,EAII,SACEF,EACG,OAAOC,CAAuB,EAC9B,OAAO,CAEN,QACA,OACA,UACA,QAEA,WACA,gBACA,mBACA,QACV,CAAS,EACL,SAAU,0BACd,EAKI,SAAU,CACRF,EACAH,EAAK,QACH,eACA,OACA,CACE,YAAa,WACb,UAAW,CACZ,CACF,EACDA,EAAK,QACH,WACA,IAAK,CAAE,SAAU,CACf,CACE,YAAa,WACb,MAAO,IACP,IAAK,IACL,UAAW,CACZ,CACX,CAAW,CACJ,EACDA,EAAK,oBACLA,EAAK,qBACL,CACE,UAAW,QACX,cAAe,kBACf,IAAK,KACL,WAAY,GACZ,SAAU,CACR,CAAE,cAAe,oBAAsB,EACvCA,EAAK,qBACN,CACF,EACDA,EAAK,cACL,CACE,UAAW,OACX,MAAO,YACR,EACD,CAAE,MAAO,IACR,CACF,CACL,CACA,CAEA,IAAAO,EAAiBR","x_google_ignoreList":[0]} |