1
|
{"version":3,"sources":["webpack:///./node_modules/highlight.js/lib/languages/nix.js"],"names":["module","exports","hljs","NIX_KEYWORDS","keyword","literal","built_in","ANTIQUOTE","className","begin","end","keywords","STRING","contains","variants","EXPRESSIONS","NUMBER_MODE","HASH_COMMENT_MODE","C_BLOCK_COMMENT_MODE","returnBegin","relevance","aliases"],"mappings":"qFAAAA,EAAOC,QAAU,SAASC,GACxB,IAAIC,EAAe,CACjBC,QACE,8CACFC,QACE,yBACFC,SACE,2FAGAC,EAAY,CACdC,UAAW,QACXC,MAAO,OACPC,IAAK,IACLC,SAAUR,GAYRS,EAAS,CACXJ,UAAW,SACXK,SAAU,CAACN,GACXO,SAAU,CACR,CAACL,MAAO,KAAMC,IAAK,MACnB,CAACD,MAAO,IAAKC,IAAK,OAGlBK,EAAc,CAChBb,EAAKc,YACLd,EAAKe,kBACLf,EAAKgB,qBACLN,EAtBU,CACVH,MAAO,uBAAwBU,aAAa,EAC5CC,UAAW,EACXP,SAAU,CACR,CACEL,UAAW,OACXC,MAAO,UAoBb,OADAF,EAAUM,SAAWE,EACd,CACLM,QAAS,CAAC,SACVV,SAAUR,EACVU,SAAUE","file":"highlight/nix.js?v=c875489899eda5bb248b","sourcesContent":["module.exports = function(hljs) {\n var NIX_KEYWORDS = {\n keyword:\n 'rec with let in inherit assert if else then',\n literal:\n 'true false or and null',\n built_in:\n 'import abort baseNameOf dirOf isNull builtins map removeAttrs throw ' +\n 'toString derivation'\n };\n var ANTIQUOTE = {\n className: 'subst',\n begin: /\\$\\{/,\n end: /}/,\n keywords: NIX_KEYWORDS\n };\n var ATTRS = {\n begin: /[a-zA-Z0-9-_]+(\\s*=)/, returnBegin: true,\n relevance: 0,\n contains: [\n {\n className: 'attr',\n begin: /\\S+/\n }\n ]\n };\n var STRING = {\n className: 'string',\n contains: [ANTIQUOTE],\n variants: [\n {begin: \"''\", end: \"''\"},\n {begin: '\"', end: '\"'}\n ]\n };\n var EXPRESSIONS = [\n hljs.NUMBER_MODE,\n hljs.HASH_COMMENT_MODE,\n hljs.C_BLOCK_COMMENT_MODE,\n STRING,\n ATTRS\n ];\n ANTIQUOTE.contains = EXPRESSIONS;\n return {\n aliases: [\"nixos\"],\n keywords: NIX_KEYWORDS,\n contains: EXPRESSIONS\n };\n};"],"sourceRoot":""}
|