1
|
{"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","case_insensitive","illegal","COMMENT","returnBegin","endsParent"],"mappings":"qFAAAA,EAAOC,QAAU,SAASC,GAGxB,IAAIC,EAAM,aAGNC,EAAQ,IAAMD,EAAI,OAAOA,EAAK,eAE9BE,EAAY,+BAEZC,EAAkB,CAEdC,IAAKH,EACLI,UAAW,EACXC,OAAQ,CAENC,UAAW,SACXH,IAAK,IACLC,UAAW,EACXG,SAAU,CACR,CAAEC,MAAO,cAKrB,MAAO,CACLC,kBAAkB,EAClBC,QAAS,KACTH,SAAU,CACRT,EAAKa,QAAQ,YAAa,KAG1B,CACEH,MA1Ba,kCA0BSR,EACtBY,aAAa,EACbL,SAAU,CACR,CACED,UAAW,OACXE,MA/BS,kCAgCTK,YAAY,EACZT,UAAW,IAGfC,OAAQH,GAGV,CACEM,MAAOP,EAAYD,EACnBY,aAAa,EACbR,UAAW,EACXG,SAAU,CACR,CACED,UAAW,OACXE,MAAOP,EACPY,YAAY,EACZT,UAAW,IAGfC,OAAQH,GAGV,CACEI,UAAW,OACXF,UAAW,EACXI,MAAOP,EAAYF,EAAM","file":"highlight/properties.js?v=3ce9a5b94e9725345d9a","sourcesContent":["module.exports = function(hljs) {\n\n // whitespaces: space, tab, formfeed\n var WS0 = '[ \\\\t\\\\f]*';\n var WS1 = '[ \\\\t\\\\f]+';\n // delimiter\n var DELIM = '(' + WS0+'[:=]'+WS0+ '|' + WS1 + ')';\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 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 begin: KEY_ALPHANUM + DELIM,\n returnBegin: true,\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};"],"sourceRoot":""}
|