smali.min.js 1.1 KB

12345678910111213
  1. /*! `smali` grammar compiled for Highlight.js 11.7.0 */
  2. var hljsGrammar=(()=>{"use strict";return e=>{
  3. const a=["add","and","cmp","cmpg","cmpl","const","div","double","float","goto","if","int","long","move","mul","neg","new","nop","not","or","rem","return","shl","shr","sput","sub","throw","ushr","xor"]
  4. ;return{name:"Smali",contains:[{className:"string",begin:'"',end:'"',relevance:0
  5. },e.COMMENT("#","$",{relevance:0}),{className:"keyword",variants:[{
  6. begin:"\\s*\\.end\\s[a-zA-Z0-9]*"},{begin:"^[ ]*\\.[a-zA-Z]*",relevance:0},{
  7. begin:"\\s:[a-zA-Z_0-9]*",relevance:0},{
  8. begin:"\\s(transient|constructor|abstract|final|synthetic|public|private|protected|static|bridge|system)"
  9. }]},{className:"built_in",variants:[{begin:"\\s("+a.join("|")+")\\s"},{
  10. begin:"\\s("+a.join("|")+")((-|/)[a-zA-Z0-9]+)+\\s",relevance:10},{
  11. begin:"\\s(aget|aput|array|check|execute|fill|filled|goto/16|goto/32|iget|instance|invoke|iput|monitor|packed|sget|sparse)((-|/)[a-zA-Z0-9]+)*\\s",
  12. relevance:10}]},{className:"class",begin:"L[^(;:\n]*;",relevance:0},{
  13. begin:"[vp][0-9]+"}]}}})();export default hljsGrammar;