1
|
{"version":3,"sources":["webpack:///./node_modules/highlight.js/lib/languages/taggerscript.js"],"names":["module","exports","hljs","name","contains","className","begin","end","relevance","excludeEnd"],"mappings":"oGAmDAA,EAAOC,QA7CP,SAAsBC,GAkCpB,MAAO,CACLC,KAAM,gBACNC,SAAU,CAnCI,CACdC,UAAW,UACXC,MAAO,WACPC,IAAK,KACLH,SAAU,CAAE,CACVE,MAAO,KACPC,IAAK,KACLH,SAAU,CAAE,OACV,CACEE,MAAO,UAGbE,UAAW,IAGI,CACfH,UAAW,UACXC,MAAO,kCACPC,IAAK,KACLE,YAAY,GAGG,CACfJ,UAAW,WACXC,MAAO,kBACPC,IAAK,KAGiB,CACtBF,UAAW,SACXC,MAAO","file":"highlight/taggerscript.js?v=918f25bf4560db37f842","sourcesContent":["/*\nLanguage: Tagger Script\nAuthor: Philipp Wolfer <ph.wolfer@gmail.com>\nDescription: Syntax Highlighting for the Tagger Script as used by MusicBrainz Picard.\nWebsite: https://picard.musicbrainz.org\n */\nfunction taggerscript(hljs) {\n const COMMENT = {\n className: 'comment',\n begin: /\\$noop\\(/,\n end: /\\)/,\n contains: [ {\n begin: /\\(/,\n end: /\\)/,\n contains: [ 'self',\n {\n begin: /\\\\./\n } ]\n } ],\n relevance: 10\n };\n\n const FUNCTION = {\n className: 'keyword',\n begin: /\\$(?!noop)[a-zA-Z][_a-zA-Z0-9]*/,\n end: /\\(/,\n excludeEnd: true\n };\n\n const VARIABLE = {\n className: 'variable',\n begin: /%[_a-zA-Z0-9:]*/,\n end: '%'\n };\n\n const ESCAPE_SEQUENCE = {\n className: 'symbol',\n begin: /\\\\./\n };\n\n return {\n name: 'Tagger Script',\n contains: [\n COMMENT,\n FUNCTION,\n VARIABLE,\n ESCAPE_SEQUENCE\n ]\n };\n}\n\nmodule.exports = taggerscript;\n"],"sourceRoot":""}
|