3
V'íc§ ã @ sf d Z ddlZddlmZmZmZ ddlmZmZm Z m
Z
mZmZm
Z
mZmZ dgZG dd deZdS )z¼
pygments.lexers.wren
~~~~~~~~~~~~~~~~~~~~
Lexer for Wren.
:copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
é N)ÚincludeÚ
RegexLexerÚwords) Ú
WhitespaceÚPunctuationÚKeywordÚNameÚCommentÚOperatorÚNumberÚStringÚErrorÚ WrenLexerc @ sR e Zd ZdZdZdZdgZdgZej ej
B Zdefde
fde
d fd
e
dfed>dddefed?dddejfed@dddejfd$ejd%fd&ejfd'ejfd(efd)efd*ejfd+ejjfd,ejjfd-ejfd.ejfd/efd0ed1fgd$ejd2fd3ejdfd4ejfgd0edfd5ejfd6ejfd7ejfd8ejfd9ej d:fd;efgd
ej dfe!d gd<Z"d=S )Ar zL
For Wren source code, version 0.4.0.
.. versionadded:: 2.14.0
ZWrenzhttps://wren.ioZwrenz*.wrenz\s+z[,\\\[\]{}]z\(Úrootz\)z#popÚasÚbreakÚclassÚ constructÚcontinueÚelseÚforÚforeignÚifÚimportÚreturnÚstaticÚsuperÚthisÚvarÚwhilez(?<!\.)z\b)ÚprefixÚsuffixÚtrueÚfalseÚnullÚinÚisz/\*Úcommentz//.*?$z#.*?(\(.*?\))?$z[!%&*+\-./:<=>?\\^|~]+z[a-z][a-zA-Z_0-9]*z[A-Z][a-zA-Z_0-9]*z__[a-zA-Z_0-9]*z_[a-zA-Z_0-9]*z0x[0-9a-fA-F]+z\d+(\.\d+)?([eE][-+]?\d+)?z """.*?"""ú"Ústringz#pushz\*/z([^*/]|\*(?!/)|/(?!\*))+z\\[\\%"0abefnrtv]z\\x[a-fA-F0-9]{2}z\\u[a-fA-F0-9]{4}z\\U[a-fA-F0-9]{8}z%\(Ú
interpolationz[^\\"%]+)r r'