text/js/highlight/properties.js.map

1 строка
3.2 KiB
Plaintext

{"version":3,"sources":["webpack:///./node_modules/highlight.js/lib/languages/properties.js"],"names":["module","exports","hljs","WS0","DELIM","KEY_OTHER","DELIM_AND_VALUE","end","relevance","starts","className","contains","begin","name","case_insensitive","illegal","COMMENT","returnBegin","variants","KEY_ALPHANUM","endsParent"],"mappings":"oGAmFAA,EAAOC,QA5EP,SAAoBC,GAGlB,IAAIC,EAAM,aAKNC,EAAQ,wCAERC,EAAY,+BAEZC,EAAkB,CAEdC,IAAKH,EACLI,UAAW,EACXC,OAAQ,CAENC,UAAW,SACXH,IAAK,IACLC,UAAW,EACXG,SAAU,CACR,CAAEC,MAAO,cAKrB,MAAO,CACLC,KAAM,cACNC,kBAAkB,EAClBC,QAAS,KACTJ,SAAU,CACRT,EAAKc,QAAQ,YAAa,KAG1B,CACEC,aAAa,EACbC,SAAU,CACR,CAAEN,MAAOO,0DAA4BX,UAAW,GAChD,CAAEI,MAAOO,4CAAyBX,UAAW,IAE/CG,SAAU,CACR,CACED,UAAW,OACXE,MAnCS,kCAoCTQ,YAAY,EACZZ,UAAW,IAGfC,OAAQH,GAGV,CACEM,MAAOP,EAAYD,EACnBa,aAAa,EACbT,UAAW,EACXG,SAAU,CACR,CACED,UAAW,OACXE,MAAOP,EACPe,YAAY,EACZZ,UAAW,IAGfC,OAAQH,GAGV,CACEI,UAAW,OACXF,UAAW,EACXI,MAAOP,EAAYF,EAAM","file":"highlight/properties.js?v=c93fc6867ae230d72f08","sourcesContent":["/*\nLanguage: .properties\nContributors: Valentin Aitken <valentin@nalisbg.com>, Egor Rogov <e.rogov@postgrespro.ru>\nWebsite: https://en.wikipedia.org/wiki/.properties\nCategory: common, config\n*/\n\nfunction properties(hljs) {\n\n // whitespaces: space, tab, formfeed\n var WS0 = '[ \\\\t\\\\f]*';\n var WS1 = '[ \\\\t\\\\f]+';\n // delimiter\n var EQUAL_DELIM = WS0+'[:=]'+WS0;\n var WS_DELIM = WS1;\n var DELIM = '(' + EQUAL_DELIM + '|' + WS_DELIM + ')';\n var KEY_ALPHANUM = '([^\\\\\\\\\\\\W:= \\\\t\\\\f\\\\n]|\\\\\\\\.)+';\n var KEY_OTHER = '([^\\\\\\\\:= \\\\t\\\\f\\\\n]|\\\\\\\\.)+';\n\n var DELIM_AND_VALUE = {\n // skip DELIM\n end: DELIM,\n relevance: 0,\n starts: {\n // value: everything until end of line (again, taking into account backslashes)\n className: 'string',\n end: /$/,\n relevance: 0,\n contains: [\n { begin: '\\\\\\\\\\\\n' }\n ]\n }\n };\n\n return {\n name: '.properties',\n case_insensitive: true,\n illegal: /\\S/,\n contains: [\n hljs.COMMENT('^\\\\s*[!#]', '$'),\n // key: everything until whitespace or = or : (taking into account backslashes)\n // case of a \"normal\" key\n {\n returnBegin: true,\n variants: [\n { begin: KEY_ALPHANUM + EQUAL_DELIM, relevance: 1 },\n { begin: KEY_ALPHANUM + WS_DELIM, relevance: 0 }\n ],\n contains: [\n {\n className: 'attr',\n begin: KEY_ALPHANUM,\n endsParent: true,\n relevance: 0\n }\n ],\n starts: DELIM_AND_VALUE\n },\n // case of key containing non-alphanumeric chars => relevance = 0\n {\n begin: KEY_OTHER + DELIM,\n returnBegin: true,\n relevance: 0,\n contains: [\n {\n className: 'meta',\n begin: KEY_OTHER,\n endsParent: true,\n relevance: 0\n }\n ],\n starts: DELIM_AND_VALUE\n },\n // case of an empty key\n {\n className: 'attr',\n relevance: 0,\n begin: KEY_OTHER + WS0 + '$'\n }\n ]\n };\n}\n\nmodule.exports = properties;\n"],"sourceRoot":""}