1 line
2.4 KiB
Plaintext
1 line
2.4 KiB
Plaintext
{"version":3,"file":"nestedtext-CpCoOu38.chunk.mjs","sources":["../node_modules/highlight.js/lib/languages/nestedtext.js"],"sourcesContent":["/*\nLanguage: NestedText\nDescription: NestedText is a file format for holding data that is to be entered, edited, or viewed by people.\nWebsite: https://nestedtext.org/\nCategory: config\n*/\n\n/** @type LanguageFn */\nfunction nestedtext(hljs) {\n const NESTED = {\n match: [\n /^\\s*(?=\\S)/, // have to look forward here to avoid polynomial backtracking\n /[^:]+/,\n /:\\s*/,\n /$/\n ],\n className: {\n 2: \"attribute\",\n 3: \"punctuation\"\n }\n };\n const DICTIONARY_ITEM = {\n match: [\n /^\\s*(?=\\S)/, // have to look forward here to avoid polynomial backtracking\n /[^:]*[^: ]/,\n /[ ]*:/,\n /[ ]/,\n /.*$/\n ],\n className: {\n 2: \"attribute\",\n 3: \"punctuation\",\n 5: \"string\"\n }\n };\n const STRING = {\n match: [\n /^\\s*/,\n />/,\n /[ ]/,\n /.*$/\n ],\n className: {\n 2: \"punctuation\",\n 4: \"string\"\n }\n };\n const LIST_ITEM = {\n variants: [\n { match: [\n /^\\s*/,\n /-/,\n /[ ]/,\n /.*$/\n ] },\n { match: [\n /^\\s*/,\n /-$/\n ] }\n ],\n className: {\n 2: \"bullet\",\n 4: \"string\"\n }\n };\n\n return {\n name: 'Nested Text',\n aliases: [ 'nt' ],\n contains: [\n hljs.inherit(hljs.HASH_COMMENT_MODE, {\n begin: /^\\s*(?=#)/,\n excludeBegin: true\n }),\n LIST_ITEM,\n STRING,\n NESTED,\n DICTIONARY_ITEM\n ]\n };\n}\n\nmodule.exports = nestedtext;\n"],"names":["nestedtext","hljs","NESTED","DICTIONARY_ITEM","STRING","LIST_ITEM","nestedtext_1"],"mappings":"uCAQA,SAASA,EAAWC,EAAM,CACxB,MAAMC,EAAS,CACb,MAAO,CACL,aACA,QACA,OACA,KAEF,UAAW,CACT,EAAG,YACH,EAAG,aACT,GAEQC,EAAkB,CACtB,MAAO,CACL,aACA,aACA,QACA,MACA,OAEF,UAAW,CACT,EAAG,YACH,EAAG,cACH,EAAG,QACT,GAEQC,EAAS,CACb,MAAO,CACL,OACA,IACA,MACA,OAEF,UAAW,CACT,EAAG,cACH,EAAG,QACT,GAEQC,EAAY,CAChB,SAAU,CACR,CAAE,MAAO,CACP,OACA,IACA,MACA,KACR,CAAO,EACD,CAAE,MAAO,CACP,OACA,KACD,GAEH,UAAW,CACT,EAAG,SACH,EAAG,QACT,GAGE,MAAO,CACL,KAAM,cACN,QAAS,CAAE,IAAI,EACf,SAAU,CACRJ,EAAK,QAAQA,EAAK,kBAAmB,CACnC,MAAO,YACP,aAAc,EACtB,CAAO,EACDI,EACAD,EACAF,EACAC,CACN,EAEA,CAEA,OAAAG,EAAiBN","x_google_ignoreList":[0]} |