1
|
{"version":3,"sources":["webpack:///./node_modules/highlight.js/lib/languages/smali.js"],"names":["module","exports","hljs","smali_instr_low_prio","name","aliases","contains","className","begin","end","relevance","COMMENT","variants","join"],"mappings":"oGAuIAA,EAAOC,QAhIP,SAAeC,GACb,IAAMC,EAAuB,CAC3B,MACA,MACA,MACA,OACA,OACA,QACA,MACA,SACA,QACA,OACA,KACA,MACA,OACA,OACA,MACA,MACA,MACA,MACA,MACA,KACA,MACA,SACA,MACA,MACA,OACA,MACA,QACA,OACA,OAkCF,MAAO,CACLC,KAAM,QACNC,QAAS,CAAE,SACXC,SAAU,CACR,CACEC,UAAW,SACXC,MAAO,IACPC,IAAK,IACLC,UAAW,GAEbR,EAAKS,QACH,IACA,IACA,CACED,UAAW,IAGf,CACEH,UAAW,UACXK,SAAU,CACR,CACEJ,MAAO,6BAET,CACEA,MAAO,oBACPE,UAAW,GAEb,CACEF,MAAO,oBACPE,UAAW,GAEb,CACEF,MAAO,OA7CM,CACrB,YACA,cACA,WACA,QACA,YACA,SACA,UACA,YACA,SACA,SACA,UAkCuCK,KAAK,KAAO,OAIjD,CACEN,UAAW,WACXK,SAAU,CACR,CACEJ,MAAO,OAASL,EAAqBU,KAAK,KAAO,QAEnD,CACEL,MAAO,OAASL,EAAqBU,KAAK,KAAO,2BACjDH,UAAW,IAEb,CACEF,MAAO,OA/Ea,CAC5B,OACA,OACA,QACA,QACA,UACA,OACA,SACA,UACA,UACA,OACA,WACA,SACA,OACA,UACA,SACA,OACA,UA8D8CK,KAAK,KAAO,2BAClDH,UAAW,MAIjB,CACEH,UAAW,QACXC,MAAO,cACPE,UAAW,GAEb,CACEF,MAAO","file":"highlight/smali.js?v=15c42eccd8c2735b9606","sourcesContent":["/*\nLanguage: Smali\nAuthor: Dennis Titze <dennis.titze@gmail.com>\nDescription: Basic Smali highlighting\nWebsite: https://github.com/JesusFreke/smali\n*/\n\nfunction smali(hljs) {\n const smali_instr_low_prio = [\n 'add',\n 'and',\n 'cmp',\n 'cmpg',\n 'cmpl',\n 'const',\n 'div',\n 'double',\n 'float',\n 'goto',\n 'if',\n 'int',\n 'long',\n 'move',\n 'mul',\n 'neg',\n 'new',\n 'nop',\n 'not',\n 'or',\n 'rem',\n 'return',\n 'shl',\n 'shr',\n 'sput',\n 'sub',\n 'throw',\n 'ushr',\n 'xor'\n ];\n const smali_instr_high_prio = [\n 'aget',\n 'aput',\n 'array',\n 'check',\n 'execute',\n 'fill',\n 'filled',\n 'goto/16',\n 'goto/32',\n 'iget',\n 'instance',\n 'invoke',\n 'iput',\n 'monitor',\n 'packed',\n 'sget',\n 'sparse'\n ];\n const smali_keywords = [\n 'transient',\n 'constructor',\n 'abstract',\n 'final',\n 'synthetic',\n 'public',\n 'private',\n 'protected',\n 'static',\n 'bridge',\n 'system'\n ];\n return {\n name: 'Smali',\n aliases: [ 'smali' ],\n contains: [\n {\n className: 'string',\n begin: '\"',\n end: '\"',\n relevance: 0\n },\n hljs.COMMENT(\n '#',\n '$',\n {\n relevance: 0\n }\n ),\n {\n className: 'keyword',\n variants: [\n {\n begin: '\\\\s*\\\\.end\\\\s[a-zA-Z0-9]*'\n },\n {\n begin: '^[ ]*\\\\.[a-zA-Z]*',\n relevance: 0\n },\n {\n begin: '\\\\s:[a-zA-Z_0-9]*',\n relevance: 0\n },\n {\n begin: '\\\\s(' + smali_keywords.join('|') + ')'\n }\n ]\n },\n {\n className: 'built_in',\n variants: [\n {\n begin: '\\\\s(' + smali_instr_low_prio.join('|') + ')\\\\s'\n },\n {\n begin: '\\\\s(' + smali_instr_low_prio.join('|') + ')((-|/)[a-zA-Z0-9]+)+\\\\s',\n relevance: 10\n },\n {\n begin: '\\\\s(' + smali_instr_high_prio.join('|') + ')((-|/)[a-zA-Z0-9]+)*\\\\s',\n relevance: 10\n }\n ]\n },\n {\n className: 'class',\n begin: 'L[^\\(;:\\n]*;',\n relevance: 0\n },\n {\n begin: '[vp][0-9]+'\n }\n ]\n };\n}\n\nmodule.exports = smali;\n"],"sourceRoot":""}
|