j h S r SSKrSSKJrJrJr SSKJrJrJ r J
r
JrJrJ
r
Jr S/r " S S\5 rg)z
pygments.lexers.dalvik
~~~~~~~~~~~~~~~~~~~~~~
Pygments lexers for Dalvik VM-related languages.
:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
N)
RegexLexerincludebygroups)KeywordTextCommentNameStringNumberPunctuation
Whitespace
SmaliLexerc \ rS rSrSrSrSrS/rS/rS/r Sr
\" S 5 \" S
5 \" S5 \" S5 \" S
5 \" S5 \" S5 \" S5 \" S5 \" S5 \" S5 \" S5 /S\" \
\5 4S\" \
\\
\5 4S\" \
\\
\5 4/S\4/S\
4S\
4/S\R 4S\" \\
5 4/S\4S\R( 4S\R* 4S \R, 4/S!\" \\R0 \5 4/S"\R2 4S#\" \\R2 \5 4/S$\R4 4/S%\" \R6 \\R8 \5 4/S&\4S'\4/S(\R6 4/S)\4/S*.
rS+ rS,r g-).r z+
For Smali (Android/Dalvik) assembly
code.
Smalizhttp://code.google.com/p/smali/smaliz*.smaliz
text/smaliz1.6commentlabelfieldmethodclass directiveaccess-modifierinstructionliteralpunctuationtype
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)
rootr r r r r r r r r r r r c * Sn[ R " SU [ R 5 ( a5 US-
n[ R " SU [ R 5 ( a US-
n[ R " SU [ R 5 ( a US-
nU$ )Nr z
^\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?)research MULTILINE)textscores I/usr/lib/rads/venv/lib/python3.13/site-packages/pygments/lexers/dalvik.pyanalyse_textSmaliLexer.analyse_textm s
99%tR\\::SLEyy 3 59",,H H
99 8 :>r||
M M
SLE N)!__name__
__module____qualname____firstlineno____doc__nameurlaliases filenames mimetypes
version_addedr r r
r r Builtinr r
r HexFloatIntegerr VariableFunctionLabelTypeClassr tokensr' __static_attributes__r* r) r&