3

V'ícÿã@sbdZddlZddlmZmZmZddlmZmZm	Z	m
Z
mZmZm
Z
mZdgZGdd„deƒZdS)zá
    pygments.lexers.dalvik
    ~~~~~~~~~~~~~~~~~~~~~~

    Pygments lexers for Dalvik VM-related languages.

    :copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
éN)Ú
RegexLexerÚincludeÚbygroups)ÚKeywordÚTextÚCommentÚNameÚStringÚNumberÚPunctuationÚ
WhitespaceÚ
SmaliLexerc@sheZdZdZdZdZdgZdgZdgZe	dƒe	dƒe	d	ƒe	d
ƒe	dƒe	dƒe	d
ƒe	dƒe	dƒe	dƒe	dƒe	dƒgde
eeƒfde
eeeeƒfde
eeeeƒfgdefgdefdefgde
jfde
eeƒfgdefdejfdejfdejfgde
ee
jeƒfgd e
jfd!e
ee
jeƒfgd"e
jfgd#e
ejee
jeƒfgd$efd%efgd&ejfgd'efgd(œ
Zd)d*„Zd+S),r
zR
    For Smali (Android/Dalvik) assembly
    code.

    .. versionadded:: 1.6
    ZSmalizhttp://code.google.com/p/smali/Zsmaliz*.smaliz
text/smaliÚcommentÚlabelÚfieldÚmethodÚclassÚ	directivezaccess-modifierÚinstructionÚliteralÚpunctuationÚtypeÚ
whitespacezÇ^([ \t]*)(\.(?:class|super|implements|field|subannotation|annotation|enum|method|registers|locals|array-data|packed-switch|sparse-switch|catchall|catch|line|parameter|local|prologue|epilogue|source))zq^([ \t]*)(\.end)( )(field|subannotation|annotation|method|array-data|packed-switch|sparse-switch|parameter|local)z^([ \t]*)(\.restart)( )(local)zµ(public|private|protected|static|final|synchronized|bridge|varargs|native|abstract|strictfp|synthetic|constructor|declared-synchronized|interface|enum|annotation|volatile|transient)z\nz\s+z\b[vp]\d+\bz(\b[a-z][A-Za-z0-9/-]+)(\s+)z".*"z0x[0-9A-Fa-f]+t?z [0-9]*\.[0-9]+([eE][0-9]+)?[fd]?z[0-9]+L?z(\$?\b)([\w$]*)(:)z
<(?:cl)?init>z(\$?\b)([\w$]*)(\()z:\w+z(L)((?:[\w$]+/)*)([\w$]+)(;)z->z[{},():=.-]z[ZBSCIJFDV\[]+z#.*?\n)
Úrootrzaccess-modifierrrrrrrrrrrcCsPd}tjd|tjƒr4|d7}tjd|tjƒr4|d7}tjd|tjƒrL|d7}|S)Nrz
^\s*\.class\sgà?z­\b((check-cast|instance-of|throw-verification-error)\b|(-to|add|[ais]get|[ais]put|and|cmpl|const|div|if|invoke|move|mul|neg|not|or|rem|return|rsub|shl|shr|sub|ushr)[-/])|{|}g333333Ó?a>(\.(catchall|epilogue|restart local|prologue)|\b(array-data|class-change-error|declared-synchronized|(field|inline|vtable)@0x[0-9a-fA-F]|generic-error|illegal-class-access|illegal-field-access|illegal-method-access|instantiation-error|no-error|no-such-class|no-such-field|no-such-method|packed-switch|sparse-switch))\bg333333ã?)ÚreÚsearchÚ	MULTILINE)ÚtextZscore©rú:/tmp/pip-build-gk9425m9/Pygments/pygments/lexers/dalvik.pyÚanalyse_textns

zSmaliLexer.analyse_textN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚnameÚurlÚaliasesÚ	filenamesÚ	mimetypesrrrrrZBuiltinrr	r
ZHexZFloatZIntegerrÚVariableZFunctionZLabelÚTypeZClassrÚtokensr rrrrr
s^



)r$rZpygments.lexerrrrZpygments.tokenrrrrr	r
rrÚ__all__r
rrrrÚ<module>	s
(