Your IP : 216.73.216.213
B
ɽ�\�r � @ s\ d Z ddlZddlmZmZmZmZmZmZ ddl m
Z
mZ ddlm
Z
ddlmZmZmZmZmZmZmZmZmZ ddd d
ddd
dddddgZG dd� de�Zdd� ZG dd� de�ZG dd � d e�ZG dd
� d
e�ZG dd� de�ZG dd� de�ZG dd
� d
e�Z G dd� de�Z!G dd� de�Z"G dd� de�Z#G dd� de�Z$G d d� de�Z%dS )!z�
pygments.lexers.asm
~~~~~~~~~~~~~~~~~~~
Lexers for assembly languages.
:copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
� N)�
RegexLexer�include�bygroups�using�words�DelegatingLexer)�CppLexer�CLexer)�DLexer) �Text�Name�Number�String�Comment�Punctuation�Other�Keyword�Operator�GasLexer�ObjdumpLexer�
DObjdumpLexer�CppObjdumpLexer�
CObjdumpLexer�
HsailLexer� LlvmLexer� NasmLexer�NasmObjdumpLexer� TasmLexer� Ca65Lexer�Dasm16Lexerc @ s� e Zd ZdZdZddgZddgZdgZdZd Z d
e d e d Z
d
Zed�e
d e
jfde
e
jdfde
jfe
e
jdfdefge
e
jfeefde
e
jfeejfdedfdedfed�ed�gde
d eejeee
je�fde
d e d eejeee
jeeje�fe
e
jfeejfde
e
jfde ejfdejfdedfdedfed�ed�gdefd efdefgd!efgd"�Zd#d$� Zd%S )&r z'
For Gas (AT&T) assembly code.
ZGASZgas�asmz*.sz*.Sz
text/x-gasz
"(\\"|[^"])*"z[\w$.@-]z
(?:[a-zA-Z$_]z*|\.z+)z(?:0[xX][a-zA-Z0-9]+|\d+)�
whitespace�:z\.zdirective-argszlock|rep(n?z)?|data\d+zinstruction-argsz[\r\n]+�@z#popz [;#].*?\n�punctuationz([a-z0-9]+)( )(<)(z)(>)z)([-+])(�%�$z
$'(.|\\')'z\nz\s+z[-*,.()\[\]!:]+)�rootzdirective-argszinstruction-argsr! r$ c C s, t �d| t j�rdS t �d| t j�r(dS d S )Nz^\.(text|data|section)Tz^\.\w+g�������?)�re�match�M)�text� r, �D/opt/alt/python37/lib/python3.7/site-packages/pygments/lexers/asm.py�analyse_text_ s zGasLexer.analyse_textN)�__name__�
__module__�__qualname__�__doc__�name�aliases� filenames� mimetypes�string�char�
identifier�numberr r �LabelZ Attribute�Functionr �Constantr r
�Integerr r �Hexr �Variable�Char�tokensr. r, r, r, r- r sV
c C sR d}ddt tjttt�fdt ttjt�fd| d t tjtttjttjt�fd| d t tjtttjt�fd| d | | d
t ttjttjtt | ��fd| d | | d t ttjttjtt�fd| d | | d t ttjttj�fd
tfd| d | d t ttjttj
ttjttj�fd| d t ttjttj
ttj�fdtfgiS )z;
Common objdump lexer tokens to wrap an ASM lexer.
z[0-9A-Za-z]r'