smali top-level property

Mode smali
final

Implementation

final smali = Mode(refs: {}, aliases: [
  "smali"
], contains: [
  Mode(className: "string", begin: "\"", end: "\"", relevance: 0),
  Mode(
      className: "comment",
      begin: "#",
      end: "\$",
      contains: [
        PHRASAL_WORDS_MODE,
        Mode(
            className: "doctag",
            begin: "(?:TODO|FIXME|NOTE|BUG|XXX):",
            relevance: 0)
      ],
      relevance: 0),
  Mode(className: "keyword", variants: [
    Mode(begin: "\\s*\\.end\\s[a-zA-Z0-9]*"),
    Mode(begin: "^[ ]*\\.[a-zA-Z]*", relevance: 0),
    Mode(begin: "\\s:[a-zA-Z_0-9]*", relevance: 0),
    Mode(
        begin:
            "\\s(transient|constructor|abstract|final|synthetic|public|private|protected|static|bridge|system)")
  ]),
  Mode(className: "built_in", variants: [
    Mode(
        begin:
            "\\s(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)\\s"),
    Mode(
        begin:
            "\\s(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)((\\-|/)[a-zA-Z0-9]+)+\\s",
        relevance: 10),
    Mode(
        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",
        relevance: 10)
  ]),
  Mode(className: "class", begin: "L[^(;:\n]*;", relevance: 0),
  Mode(begin: "[vp][0-9]+")
])