1
|
{"version":3,"sources":["webpack:///./node_modules/highlight.js/lib/languages/lua.js"],"names":["module","exports","hljs","LONG_BRACKETS","begin","end","contains","COMMENTS","COMMENT","relevance","lexemes","UNDERSCORE_IDENT_RE","keywords","literal","keyword","built_in","concat","className","beginKeywords","inherit","TITLE_MODE","endsWithParent","C_NUMBER_MODE","APOS_STRING_MODE","QUOTE_STRING_MODE"],"mappings":"qFAAAA,EAAOC,QAAU,SAASC,GACxB,IAEIC,EAAgB,CAClBC,MAHyB,WAGIC,IAFJ,WAGzBC,SAAU,CAAC,SAETC,EAAW,CACbL,EAAKM,QAAQ,iBAAsC,KACnDN,EAAKM,QACH,aARuB,WAUvB,CACEF,SAAU,CAACH,GACXM,UAAW,MAIjB,MAAO,CACLC,QAASR,EAAKS,oBACdC,SAAU,CACRC,QAAS,iBACTC,QAAS,0FACTC,SAEE,qlCAeJT,SAAUC,EAASS,OAAO,CACxB,CACEC,UAAW,WACXC,cAAe,WAAYb,IAAK,MAChCC,SAAU,CACRJ,EAAKiB,QAAQjB,EAAKkB,WAAY,CAAChB,MAAO,sDACtC,CACEa,UAAW,SACXb,MAAO,MAAOiB,gBAAgB,EAC9Bf,SAAUC,IAEZS,OAAOT,IAEXL,EAAKoB,cACLpB,EAAKqB,iBACLrB,EAAKsB,kBACL,CACEP,UAAW,SACXb,MAzDqB,WAyDQC,IAxDR,WAyDrBC,SAAU,CAACH,GACXM,UAAW","file":"highlight/lua.js?v=0ab2cc05567fcf264dca","sourcesContent":["module.exports = function(hljs) {\n var OPENING_LONG_BRACKET = '\\\\[=*\\\\[';\n var CLOSING_LONG_BRACKET = '\\\\]=*\\\\]';\n var LONG_BRACKETS = {\n begin: OPENING_LONG_BRACKET, end: CLOSING_LONG_BRACKET,\n contains: ['self']\n };\n var COMMENTS = [\n hljs.COMMENT('--(?!' + OPENING_LONG_BRACKET + ')', '$'),\n hljs.COMMENT(\n '--' + OPENING_LONG_BRACKET,\n CLOSING_LONG_BRACKET,\n {\n contains: [LONG_BRACKETS],\n relevance: 10\n }\n )\n ];\n return {\n lexemes: hljs.UNDERSCORE_IDENT_RE,\n keywords: {\n literal: \"true false nil\",\n keyword: \"and break do else elseif end for goto if in local not or repeat return then until while\",\n built_in:\n //Metatags and globals:\n '_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len ' +\n '__gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert ' +\n //Standard methods and properties:\n 'collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring' +\n 'module next pairs pcall print rawequal rawget rawset require select setfenv' +\n 'setmetatable tonumber tostring type unpack xpcall arg self' +\n //Library methods and properties (one line per library):\n 'coroutine resume yield status wrap create running debug getupvalue ' +\n 'debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv ' +\n 'io lines write close flush open output type read stderr stdin input stdout popen tmpfile ' +\n 'math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan ' +\n 'os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall ' +\n 'string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower ' +\n 'table setn insert getn foreachi maxn foreach concat sort remove'\n },\n contains: COMMENTS.concat([\n {\n className: 'function',\n beginKeywords: 'function', end: '\\\\)',\n contains: [\n hljs.inherit(hljs.TITLE_MODE, {begin: '([_a-zA-Z]\\\\w*\\\\.)*([_a-zA-Z]\\\\w*:)?[_a-zA-Z]\\\\w*'}),\n {\n className: 'params',\n begin: '\\\\(', endsWithParent: true,\n contains: COMMENTS\n }\n ].concat(COMMENTS)\n },\n hljs.C_NUMBER_MODE,\n hljs.APOS_STRING_MODE,\n hljs.QUOTE_STRING_MODE,\n {\n className: 'string',\n begin: OPENING_LONG_BRACKET, end: CLOSING_LONG_BRACKET,\n contains: [LONG_BRACKETS],\n relevance: 5\n }\n ])\n };\n};"],"sourceRoot":""}
|