File: //usr/lib/python3/dist-packages/pygments/lexers/__pycache__/matlab.cpython-38.pyc
U
�a`�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-2017 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
ZMatlabZmatlab�*.mztext/matlab)C�sin�sind�sinh�asin�asind�asinh�cos�cosd�cosh�acos�acosd�acosh�tan�tand�tanh�atan�atandZatan2�atanh�sec�secd�sech�asec�asecd�asech�csc�cscd�csch�acsc�acscd�acsch�cot�cotd�coth�acot�acotd�acoth�hypot�expZexpm1�logZlog1pZlog10Zlog2Zpow2�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�jZwhy�companZgallery�hadamard�hankel�hilb�invhilb�magic�pascal�rosser�toeplitz�vander� wilkinsonz^!.*z%\{\s*\n�blockcommentz%.*$�^\s*function�deffunc)�break�case�catch�classdef�continue�else�elseifr� Z
enumerated�events�for�function�global�if�methods� otherwiseZparfor�
persistent�
properties�returnZspmd�switch�try�while�\b��suffix�(�|z)\bz \.\.\..*$�-|==|~=|<|>|<=|>=|&&|&|~|\|\|?�\.\*|\*|\+|\.\^|\.\\|\.\/|\/|\\z\[|\]|\(|\)|\{|\}|:|@|\.|,�=|:|;�(?<=[\w)\].])\'+�&(\d+\.\d*|\d*\.\d+)([eEf][+-]?[0-9]+)?�\d+[eEf][+-]?[0-9]+�\d+�(?<![\w)\].])\'�string�[a-zA-Z_]\w*�.z[^\']*\'�#popz^\s*%\}z^.*\n�1(\s*)(?:(\S+)(\s*)(=)(\s*))?(.+)(\()(.*)(\))(\s*)�(\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� �8/usr/lib/python3/dist-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 sh
���+�
�
����=z.*?
c @ s"