text/js/leaf-CpMYBUEZ.chunk.mjs.map

1 строка
2.8 KiB
Plaintext

{"version":3,"file":"leaf-CpMYBUEZ.chunk.mjs","sources":["../node_modules/highlight.js/lib/languages/leaf.js"],"sourcesContent":["/*\nLanguage: Leaf\nDescription: A Swift-based templating language created for the Vapor project.\nWebsite: https://docs.vapor.codes/leaf/overview\nCategory: template\n*/\n\nfunction leaf(hljs) {\n const IDENT = /([A-Za-z_][A-Za-z_0-9]*)?/;\n const LITERALS = [\n 'true',\n 'false',\n 'in'\n ];\n const PARAMS = {\n scope: 'params',\n begin: /\\(/,\n end: /\\)(?=\\:?)/,\n endsParent: true,\n relevance: 7,\n contains: [\n {\n scope: 'string',\n begin: '\"',\n end: '\"'\n },\n {\n scope: 'keyword',\n match: LITERALS.join(\"|\"),\n },\n {\n scope: 'variable',\n match: /[A-Za-z_][A-Za-z_0-9]*/\n },\n {\n scope: 'operator',\n match: /\\+|\\-|\\*|\\/|\\%|\\=\\=|\\=|\\!|\\>|\\<|\\&\\&|\\|\\|/\n }\n ]\n };\n const INSIDE_DISPATCH = {\n match: [\n IDENT,\n /(?=\\()/,\n ],\n scope: {\n 1: \"keyword\"\n },\n contains: [ PARAMS ]\n };\n PARAMS.contains.unshift(INSIDE_DISPATCH);\n return {\n name: 'Leaf',\n contains: [\n // #ident():\n {\n match: [\n /#+/,\n IDENT,\n /(?=\\()/,\n ],\n scope: {\n 1: \"punctuation\",\n 2: \"keyword\"\n },\n // will start up after the ending `)` match from line ~44\n // just to grab the trailing `:` if we can match it\n starts: {\n contains: [\n {\n match: /\\:/,\n scope: \"punctuation\"\n }\n ]\n },\n contains: [\n PARAMS\n ],\n },\n // #ident or #ident:\n {\n match: [\n /#+/,\n IDENT,\n /:?/,\n ],\n scope: {\n 1: \"punctuation\",\n 2: \"keyword\",\n 3: \"punctuation\"\n }\n },\n ]\n };\n}\n\nmodule.exports = leaf;\n"],"names":["leaf","hljs","IDENT","PARAMS","INSIDE_DISPATCH","leaf_1"],"mappings":";4YAOA,SAASA,EAAKC,EAAM,CAClB,MAAMC,EAAQ,4BAMRC,EAAS,CACb,MAAO,SACP,MAAO,KACP,IAAK,YACL,WAAY,GACZ,UAAW,EACX,SAAU,CACR,CACE,MAAO,SACP,MAAO,IACP,IAAK,GACN,EACD,CACE,MAAO,UACP,MAnBW,CACf,OACA,QACA,IACJ,EAewB,KAAK,GAAG,CACzB,EACD,CACE,MAAO,WACP,MAAO,wBACR,EACD,CACE,MAAO,WACP,MAAO,2CACR,CACF,CACL,EACQC,EAAkB,CACtB,MAAO,CACLF,EACA,QACD,EACD,MAAO,CACL,EAAG,SACJ,EACD,SAAU,CAAEC,CAAQ,CACxB,EACE,OAAAA,EAAO,SAAS,QAAQC,CAAe,EAChC,CACL,KAAM,OACN,SAAU,CAER,CACE,MAAO,CACL,KACAF,EACA,QACD,EACD,MAAO,CACL,EAAG,cACH,EAAG,SACJ,EAGD,OAAQ,CACN,SAAU,CACR,CACE,MAAO,KACP,MAAO,aACR,CACF,CACF,EACD,SAAU,CACRC,CACD,CACF,EAED,CACE,MAAO,CACL,KACAD,EACA,IACD,EACD,MAAO,CACL,EAAG,cACH,EAAG,UACH,EAAG,aACJ,CACF,CACF,CACL,CACA,CAEA,IAAAG,EAAiBL","x_google_ignoreList":[0]}