class_docstr: For Smali (Android/Dalvik) assembly
  code.
  
  .. versionadded:: 1.6
class_docstr_tok: ["For","Smali","(","Android\/Dalvik",")","assembly","code",".","..","versionadded",":",":","1.6"]
code: def analyse_text(text):
      score = 0
      if re.search(r"^\s*\.class\s", text, re.MULTILINE):
          score += 0.5
          if re.search(
              r"\b((check-cast|instance-of|throw-verification-error"
              r")\b|(-to|add|[ais]get|[ais]put|and|cmpl|const|div|"
              r"if|invoke|move|mul|neg|not|or|rem|return|rsub|shl|"
              r"shr|sub|ushr)[-/])|{|}",
              text,
              re.MULTILINE,
          ):
              score += 0.3
      if re.search(
          r"(\.(catchall|epilogue|restart local|prologue)|"
          r"\b(array-data|class-change-error|declared-synchronized|"
          r"(field|inline|vtable)@0x[0-9a-fA-F]|generic-error|"
          r"illegal-class-access|illegal-field-access|"
          r"illegal-method-access|instantiation-error|no-error|"
          r"no-such-class|no-such-field|no-such-method|"
          r"packed-switch|sparse-switch))\b",
          text,
          re.MULTILINE,
      ):
          score += 0.6
      return score
  
imports: import re
  from pygments.lexer import RegexLexer, include, bygroups
  from pygments.token import Keyword, Text, Comment, Name, String, Number, Punctuation, Whitespace
label_desc: Use image node_id 1 for calling the SmaliLexer obj's underlying member method code with example usage: obj.analyse_text(text) and returns: score