File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/pygments/lexers/__pycache__/solidity.cpython-310.pyc
Back
o ;j^ � @ sb d Z ddlmZmZmZmZ ddlmZmZm Z m Z mZmZm Z mZmZ dgZG dd� de�ZdS )z� pygments.lexers.solidity ~~~~~~~~~~~~~~~~~~~~~~~~ Lexers for Solidity. :copyright: Copyright 2006-present by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. � )� RegexLexer�bygroups�include�words) �Text�Comment�Operator�Keyword�Name�String�Number�Punctuation� Whitespace� SolidityLexerc @ sB e Zd ZdZdZdgZdgZg ZdZdZ dZ ed�ed �d edfde eeej�fe d d e ejeeej�fde ejeej�fdefedddd�ejfedddd�ejfe ejfed�defdefdefgdejfdejfdejfgdejfdejfdejfdejfged�ed �d e eee�fd!ed"fgd#efd$efgd%�Z d&S )'r z# For Solidity source code. ZSolidityZsolidityz*.solzhttps://soliditylang.orgz2.5z�\b(address|bool|(?:(?:bytes|hash|int|string|uint)(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?))\b� whitespace�commentsz\bpragma\s+solidity\b�pragmaz\b(contract)(\s+)([a-zA-Z_]\w*)z/(\s+)((?:external|public|internal|private)\s+)?z([a-zA-Z_]\w*)z1\b(enum|event|function|struct)(\s+)([a-zA-Z_]\w*)z,\b(msg|block|tx)\.([A-Za-z_][a-zA-Z0-9_]*)\b)%�block�breakZconstant�constructor�continueZcontractZdo�elseZexternal�false�for�function�if�importZ inheritedZinternal�is�library�mappingZmemory�modifier�msg�newZpayableZprivateZpublicZrequire�return�returns�structZsuicide�throw�this�trueZtx�var�whilez\b)�prefix�suffix)Z keccak256� constantsz[a-zA-Z_]\w*z[~!%^&*+=|?:<>/-]z [.;{}(),\[\]]z//(\n|[\w\W]*?[^\\]\n)z/(\\\n)?[*][\w\W]*?[*](\\\n)?/z/(\\\n)?[*][\w\W]*z ("(\\"|.)*?")z ('(\\'|.)*?')z\b0[xX][0-9a-fA-F]+\bz\b\d+\bz(\^|>=|<)(\s*)(\d+\.\d+\.\d+)�;z#popz\s+z\n)�rootr r- r r N)!�__name__� __module__�__qualname__�__doc__�name�aliases� filenamesZ mimetypes�urlZ version_addedZdatatyper r r r r ZEntity�TypeZVariabler ZBuiltinr r r r �SingleZ Multiliner �Doubler ZHexZDecimal�tokens� r<