1
|
{"version":3,"sources":["webpack:///./node_modules/highlight.js/lib/languages/lisp.js"],"names":["module","exports","hljs","LISP_IDENT_RE","LISP_SIMPLE_NUMBER_RE","LITERAL","className","begin","NUMBER","variants","relevance","end","STRING","inherit","QUOTE_STRING_MODE","illegal","COMMENT","VARIABLE","KEYWORD","IDENT","MEC","QUOTED","contains","keywords","name","QUOTED_ATOM","LIST","BODY","endsWithParent"],"mappings":"oFAAAA,EAAOC,QAAU,SAASC,GACxB,IAAIC,EAAgB,gFAEhBC,EAAwB,yEAKxBC,EAAU,CACZC,UAAW,UACXC,MAAO,oBAELC,EAAS,CACXF,UAAW,SACXG,SAAU,CACR,CAACF,MAAOH,EAAuBM,UAAW,GAC1C,CAACH,MAAO,0BACR,CAACA,MAAO,0BACR,CAACA,MAAO,sCACR,CAACA,MAAO,YAAcH,EAAwB,KAAOA,EAAuBO,IAAK,SAGjFC,EAASV,EAAKW,QAAQX,EAAKY,kBAAmB,CAACC,QAAS,OACxDC,EAAUd,EAAKc,QACjB,IAAK,IACL,CACEN,UAAW,IAGXO,EAAW,CACbV,MAAO,MAAOI,IAAK,OAEjBO,EAAU,CACZZ,UAAW,SACXC,MAAO,OAASJ,GAEdgB,EAAQ,CACVZ,MAAOJ,EACPO,UAAW,GAETU,EAAM,CACRb,MAvCW,eA6CTc,EAAS,CACXC,SAAU,CAACd,EAAQI,EAAQK,EAAUC,EALrB,CAChBX,MAAO,MAAOI,IAAK,MACnBW,SAAU,CAAC,OAAQjB,EAASO,EAAQJ,EAAQW,IAGeA,GAC3DV,SAAU,CACR,CACEF,MAAO,UAAYI,IAAK,OAE1B,CACEJ,MAAO,YAAaI,IAAK,MACzBY,SAAU,CAACC,KAAM,UAEnB,CACEjB,MAAO,kBAITkB,EAAc,CAChBhB,SAAU,CACR,CAACF,MAAO,IAAOJ,GACf,CAACI,MAAO,KAAQJ,EAAgB,MAAQA,EAAgB,QAGxDuB,EAAO,CACTnB,MAAO,UAAWI,IAAK,OAErBgB,EAAO,CACTC,gBAAgB,EAChBlB,UAAW,GAcb,OAZAgB,EAAKJ,SAAW,CACd,CACEhB,UAAW,OACXG,SAAU,CACR,CAACF,MAAOJ,GACR,CAACI,MA9EM,iBAiFXoB,GAEFA,EAAKL,SAAW,CAACD,EAAQI,EAAaC,EAAMrB,EAASG,EAAQI,EAAQI,EAASC,EAAUC,EAASE,EAAKD,GAE/F,CACLJ,QAAS,KACTO,SAAU,CACRd,EAtFU,CACZF,UAAW,OACXC,MAAO,MAAOI,IAAK,KAsFjBN,EACAO,EACAI,EACAK,EACAI,EACAC,EACAP","file":"highlight/lisp.js?v=993a63c8a759665474f4","sourcesContent":["module.exports = function(hljs) {\n var LISP_IDENT_RE = '[a-zA-Z_\\\\-\\\\+\\\\*\\\\/\\\\<\\\\=\\\\>\\\\&\\\\#][a-zA-Z0-9_\\\\-\\\\+\\\\*\\\\/\\\\<\\\\=\\\\>\\\\&\\\\#!]*';\n var MEC_RE = '\\\\|[^]*?\\\\|';\n var LISP_SIMPLE_NUMBER_RE = '(\\\\-|\\\\+)?\\\\d+(\\\\.\\\\d+|\\\\/\\\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\\\+|\\\\-)?\\\\d+)?';\n var SHEBANG = {\n className: 'meta',\n begin: '^#!', end: '$'\n };\n var LITERAL = {\n className: 'literal',\n begin: '\\\\b(t{1}|nil)\\\\b'\n };\n var NUMBER = {\n className: 'number',\n variants: [\n {begin: LISP_SIMPLE_NUMBER_RE, relevance: 0},\n {begin: '#(b|B)[0-1]+(/[0-1]+)?'},\n {begin: '#(o|O)[0-7]+(/[0-7]+)?'},\n {begin: '#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?'},\n {begin: '#(c|C)\\\\(' + LISP_SIMPLE_NUMBER_RE + ' +' + LISP_SIMPLE_NUMBER_RE, end: '\\\\)'}\n ]\n };\n var STRING = hljs.inherit(hljs.QUOTE_STRING_MODE, {illegal: null});\n var COMMENT = hljs.COMMENT(\n ';', '$',\n {\n relevance: 0\n }\n );\n var VARIABLE = {\n begin: '\\\\*', end: '\\\\*'\n };\n var KEYWORD = {\n className: 'symbol',\n begin: '[:&]' + LISP_IDENT_RE\n };\n var IDENT = {\n begin: LISP_IDENT_RE,\n relevance: 0\n };\n var MEC = {\n begin: MEC_RE\n };\n var QUOTED_LIST = {\n begin: '\\\\(', end: '\\\\)',\n contains: ['self', LITERAL, STRING, NUMBER, IDENT]\n };\n var QUOTED = {\n contains: [NUMBER, STRING, VARIABLE, KEYWORD, QUOTED_LIST, IDENT],\n variants: [\n {\n begin: '[\\'`]\\\\(', end: '\\\\)'\n },\n {\n begin: '\\\\(quote ', end: '\\\\)',\n keywords: {name: 'quote'}\n },\n {\n begin: '\\'' + MEC_RE\n }\n ]\n };\n var QUOTED_ATOM = {\n variants: [\n {begin: '\\'' + LISP_IDENT_RE},\n {begin: '#\\'' + LISP_IDENT_RE + '(::' + LISP_IDENT_RE + ')*'}\n ]\n };\n var LIST = {\n begin: '\\\\(\\\\s*', end: '\\\\)'\n };\n var BODY = {\n endsWithParent: true,\n relevance: 0\n };\n LIST.contains = [\n {\n className: 'name',\n variants: [\n {begin: LISP_IDENT_RE},\n {begin: MEC_RE}\n ]\n },\n BODY\n ];\n BODY.contains = [QUOTED, QUOTED_ATOM, LIST, LITERAL, NUMBER, STRING, COMMENT, VARIABLE, KEYWORD, MEC, IDENT];\n\n return {\n illegal: /\\S/,\n contains: [\n NUMBER,\n SHEBANG,\n LITERAL,\n STRING,\n COMMENT,\n QUOTED,\n QUOTED_ATOM,\n LIST,\n IDENT\n ]\n };\n};"],"sourceRoot":""}
|