Your IP : 216.73.216.213
B
ʽ�\�q � @ s� d Z ddlZddlmZmZmZmZmZ ddlm Z m
Z
mZmZm
Z
mZmZmZmZmZ ddlmZ dddd gZG d
d� de�Ze�d�ZG dd� de�ZG d
d� de�ZG dd � d e�ZdS )z�
pygments.lexers.matlab
~~~~~~~~~~~~~~~~~~~~~~
Lexers for Matlab and related languages.
:copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
� N)�Lexer�
RegexLexer�bygroups�words�
do_insertions)
�Text�Comment�Operator�Keyword�Name�String�Number�Punctuation�Generic�
Whitespace)�_scilab_builtins�MatlabLexer�MatlabSessionLexer�OctaveLexer�ScilabLexerc @ s6 e Zd ZdZdZdgZdgZdgZdZdZ dZ
d ejfd
e
jdfde
fd
edfeddd�efdd�ee e
� d ejfde
fdefdefdefdefdefdejfdejfdejfdedfd efd!efgd"ed#fgd$e
jd#fd%e
jfd!e
jfgd&eeeeeeejeeee�
d#fd'eeej�d#fgd(�Zd)d*� Zd+S ),r z=
For Matlab source code.
.. versionadded:: 0.10
ZMatlabZmatlabz*.mztext/matlab)C�sin�sind�sinh�asin�asind�asinh�cos�cosd�cosh�acos�acosd�acosh�tan�tand�tanh�atan�atand�atan2�atanh�sec�secd�sech�asec�asecd�asech�csc�cscd�csch�acsc�acscd�acsch�cot�cotd�coth�acot�acotd�acoth�hypot�exp�expm1�log�log1p�log10�log2Zpow2�realpow�reallog�realsqrt�sqrt�nthrootZnextpow2�abs�angle�complex�conj�imag�real�unwrap�isreal�cplxpair�fix�floor�ceil�round�mod�rem�sign)'�airy�besselj�bessely�besselh�besseli�besselk�beta�betainc�betalnZellipjZellipke�erf�erfc�erfcx�erfinvZexpint�gamma�gammainc�gammalnZpsi�legendre�cross�dot�factor�isprime�primes�gcd�lcm�rat�rats�perms�nchoosek� factorialZcart2sphZcart2polZpol2cartZsph2cartZhsv2rgbZrgb2hsv)C�zeros�ones�eye�repmat�rand�randn�linspace�logspaceZ freqspace�meshgrid�
accumarray�size�length�ndims�numel�disp�isempty�isequal�isequalwithequalnans�cat�reshape�diag�blkdiag�tril�triu�fliplr�flipud�flipdimZrot90�find�endZsub2indZind2sub�bsxfun�ndgrid�permute�ipermute�shiftdim� circshift�squeeze�isscalar�isvectorZans�eps�realmax�realmin�pi�i�inf�nan�isnan�isinf�isfinite�j�why�companZgallery�hadamard�hankel�hilb�invhilb�magic�pascal�rosser�toeplitz�vander� wilkinsonz^!.*z%\{\s*\n�blockcommentz%.*$z^\s*function�deffunc)�break�case�catch�classdef�continue�else�elseifr� Z
enumerated�events�for�function�global�if�methods� otherwiseZparfor�
persistent�
properties�returnZspmd�switch�try�whilez\b)�suffix�(�|z)\bz \.\.\..*$z-|==|~=|<|>|<=|>=|&&|&|~|\|\|?z\.\*|\*|\+|\.\^|\.\\|\.\/|\/|\\z\[|\]|\(|\)|\{|\}|:|@|\.|,z=|:|;z(?<=[\w)\].])\'+z&(\d+\.\d*|\d*\.\d+)([eEf][+-]?[0-9]+)?z\d+[eEf][+-]?[0-9]+z\d+z(?<![\w)\].])\'�stringz[a-zA-Z_]\w*�.z[^\']*\'z#popz^\s*%\}z^.*\nz0(\s*)(?:(.+)(\s*)(=)(\s*))?(.+)(\()(.*)(\))(\s*)z(\s*)([a-zA-Z_]\w*))�rootr� r� r� c C s, t �d| t j�rdS t �d| t j�r(dS d S )Nz^\s*%g�������?z^!\w+)�re�match�M)�text� r� �G/opt/alt/python37/lib/python3.7/site-packages/pygments/lexers/matlab.py�analyse_text� s zMatlabLexer.analyse_textN)�__name__�
__module__�__qualname__�__doc__�name�aliases� filenames� mimetypesZelfunZspecfunZelmatr ZOtherr Z Multiliner
r �joinr �Builtinr r r
�Float�Integerr r r �Function�tokensr� r� r� r� r� r sN
z.*?
c @ s"