
g[Tc           @   s  d  Z  d d l Z d d l m Z m Z m Z m Z m Z d d l m	 Z	 m
 Z
 m Z m Z m Z m Z m Z m Z m Z m Z d d l m Z d d d d	 g Z d e f d
     YZ e j d  Z d e f d     YZ d e f d     YZ d	 e f d     YZ d S(   s   
    pygments.lexers.matlab
    ~~~~~~~~~~~~~~~~~~~~~~

    Lexers for Matlab and related languages.

    :copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
iN(   t   Lexert
   RegexLexert   bygroupst   wordst   do_insertions(
   t   Textt   Commentt   Operatort   Keywordt   Namet   Stringt   Numbert   Punctuationt   Generict
   Whitespace(   t   _scilab_builtinst   MatlabLexert   MatlabSessionLexert   OctaveLexert   ScilabLexerc        C   B   s  e  Z d  Z d Z d g Z d g Z d g Z d Z d Z d Z	 i d e
 j f d e j d f d e f d e d f e d d d e f d d j e e e	  d e j f d e f d e f d e f d e f d e f d e f d e j f d e j f d e j f d e
 d f d e f d e f g d 6d e
 d f g d 6d e j d f d e j f d e j f g d 6d e e e e e e e j e e e e 
 d f d e e e j  d f g d 6Z d   Z RS(   s=   
    For Matlab source code.

    .. versionadded:: 0.10
    t   Matlabt   matlabs   *.ms   text/matlabt   sint   sindt   sinht   asint   asindt   asinht   cost   cosdt   cosht   acost   acosdt   acosht   tant   tandt   tanht   atant   atandt   atan2t   atanht   sect   secdt   secht   asect   asecdt   asecht   csct   cscdt   cscht   acsct   acscdt   acscht   cott   cotdt   cotht   acott   acotdt   acotht   hypott   expt   expm1t   logt   log1pt   log10t   log2t   pow2t   realpowt   reallogt   realsqrtt   sqrtt   nthroott   nextpow2t   abst   anglet   complext   conjt   imagt   realt   unwrapt   isrealt   cplxpairt   fixt   floort   ceilt   roundt   modt   remt   signt   airyt   besseljt   besselyt   besselht   besselit   besselkt   betat   betainct   betalnt   ellipjt   ellipket   erft   erfct   erfcxt   erfinvt   expintt   gammat   gammainct   gammalnt   psit   legendret   crosst   dott   factort   isprimet   primest   gcdt   lcmt   ratt   ratst   permst   nchoosekt	   factorialt   cart2spht   cart2polt   pol2cartt   sph2cartt   hsv2rgbt   rgb2hsvt   zerost   onest   eyet   repmatt   randt   randnt   linspacet   logspacet	   freqspacet   meshgridt
   accumarrayt   sizet   lengtht   ndimst   numelt   dispt   isemptyt   isequalt   isequalwithequalnanst   catt   reshapet   diagt   blkdiagt   trilt   triut   fliplrt   flipudt   flipdimt   rot90t   findt   endt   sub2indt   ind2subt   bsxfunt   ndgridt   permutet   ipermutet   shiftdimt	   circshiftt   squeezet   isscalart   isvectort   anst   epst   realmaxt   realmint   pit   it   inft   nant   isnant   isinft   isfinitet   jt   whyt   compant   galleryt   hadamardt   hankelt   hilbt   invhilbt   magict   pascalt   rossert   toeplitzt   vandert	   wilkinsons   ^!.*s   %\{\s*\nt   blockcomments   %.*$s   ^\s*functiont   deffunct   breakt   caset   catcht   classdeft   continuet   elset   elseift
   enumeratedt   eventst   fort   functiont   globalt   ift   methodst	   otherwiset   parfort
   persistentt
   propertiest   returnt   spmdt   switcht   tryt   whilet   suffixs   \bt   (t   |s   )\bs	   \.\.\..*$s   -|==|~=|<|>|<=|>=|&&|&|~|\|\|?s   \.\*|\*|\+|\.\^|\.\\|\.\/|\/|\\s   \[|\]|\(|\)|\{|\}|:|@|\.|,s   =|:|;s   (?<=[\w)\].])\'+s&   (\d+\.\d*|\d*\.\d+)([eEf][+-]?[0-9]+)?s   \d+[eEf][+-]?[0-9]+s   \d+s   (?<![\w)\].])\'t   strings   [a-zA-Z_]\w*t   .t   roots   [^\']*\'s   #pops   ^\s*%\}s   ^.*\ns0   (\s*)(?:(.+)(\s*)(=)(\s*))?(.+)(\()(.*)(\))(\s*)s   (\s*)([a-zA-Z_]\w*)c         C   s<   t  j d |  t  j  r d St  j d |  t  j  r8 d Sd  S(   Ns   ^\s*%g?s   ^!\w+(   t   ret   matcht   M(   t   text(    (    s:   /usr/lib/python2.7/dist-packages/pygments/lexers/matlab.pyt   analyse_text   s    (C   R   R   R   R   R   R   R   R   R   R   R    R!   R"   R#   R$   R%   R&   R'   R(   R)   R*   R+   R,   R-   R.   R/   R0   R1   R2   R3   R4   R5   R6   R7   R8   R9   R:   R;   R<   R=   s   logR?   R@   RA   RB   RC   RD   RE   RF   RG   RH   s   absRJ   s   complexRL   s   imags   realRO   RP   RQ   RR   RS   RT   s   rounds   modRW   RX   ('   RY   RZ   R[   R\   R]   R^   R_   R`   Ra   Rb   Rc   Rd   Re   Rf   Rg   Rh   Ri   Rj   Rk   Rl   Rm   Rn   s   dotRp   Rq   Rr   Rs   Rt   Ru   Rv   Rw   Rx   Ry   Rz   R{   R|   R}   R~   R   (C   R   R   R   R   R   R   R   R   R   R   R   s   sizeR   R   R   R   R   R   R   s   catR   R   R   R   R   R   R   R   R   s   finds   endR   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   s   magicR   R   R   R   R   (   R   R   R   R   R   s   elseR   s   endR   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   (   t   __name__t
   __module__t   __doc__t   namet   aliasest	   filenamest	   mimetypest   elfunt   specfunt   elmatR
   t   OtherR   t	   MultilineR   R   t   joinR	   t   BuiltinR   R   R   t   Floatt   IntegerR   R   R   t   Functiont   tokensR   (    (    (    s:   /usr/lib/python2.7/dist-packages/pygments/lexers/matlab.pyR      s~   			                     	   %							"s   .*?
c           B   s&   e  Z d  Z d Z d g Z d   Z RS(   s   
    For Matlab sessions.  Modeled after PythonConsoleLexer.
    Contributed by Ken Schutte <kschutte@csail.mit.edu>.

    .. versionadded:: 0.10
    s   Matlab sessiont   matlabsessionc   
      c   s  t  |  j   } d } g  } xUt j |  D]D} | j   } | j d  r | j t |  d t j	 | d  f g f  | | d 7} q+ | j d  r | j t |  d t j	 | d  f g f  | | d 7} q+ | j d  rt |  } d t j
 | f } | j | | g f  q+ | rXx% t | | j |   D] }	 |	 Vq:Wd } g  } n  | j   t j | f Vq+ W| rx( t | | j |   D] }	 |	 VqWn  d  S(   Nt    s   >> i    i   s   >>i   s   ???(   R   t   optionst   line_ret   finditert   groupt
   startswitht   appendt   lenR   t   Promptt	   TracebackR   t   get_tokens_unprocessedt   startt   Output(
   t   selfR   t   mlexert   curcodet
   insertionsR   t   linet   idxt   tokent   item(    (    s:   /usr/lib/python2.7/dist-packages/pygments/lexers/matlab.pyR     s8    		(   R   R   R   R   R   R  (    (    (    s:   /usr/lib/python2.7/dist-packages/pygments/lexers/matlab.pyR      s   	c        h  B   s  e  Z d  Z d Z d g Z d g Z d g Z dZ dZ dZ	 dZ
 dZ dZ i de f de df e ddde f e e e e	 e
 e dde j f e e dde j f de f de f de f de f de f de f de f de j f de j f de j f de f de df de f de f g d6de df g d6de e e e e e e j e e e e 
 df de e e j  df g d6Z RS(  s@   
    For GNU Octave source code.

    .. versionadded:: 1.5
    t   Octavet   octaves   *.ms   text/octavet   addlistenert   addpatht   addpropertyt   allt   andt   anyt   argnamest   argvt   assignint   atexitt   autoloadt   available_graphics_toolkitst   beep_on_errort   bitandt   bitmaxt   bitort   bitshiftt   bitxorR   t   cellt   cellstrt   chart   classt   clct   columnst   command_line_patht   completion_append_chart   completion_matchesRK   t   confirm_recursive_rmdirt   cputimet   crash_dumps_octave_coret
   ctransposet   cumprodt   cumsumt   debug_on_errort   debug_on_interruptt   debug_on_warningt   default_save_optionst   dellistenerR   t   diffR   t   doc_cache_filet   do_string_escapest   doublet   drawnowt   et   echo_executing_commandsR   t   eqt   errnot
   errno_listt   errort   evalt   evalint   exect   existt   exitR   t   falset   fcleart   fcloset   fcntlt   fdispt   feoft   ferrort   fevalt   fflusht   fgetlt   fgetst
   fieldnamest   file_in_loadpatht   file_in_patht
   filemarkert   filesept   find_dir_in_patht   fixed_point_formatt   fnmatcht   fopent   forkt   formulat   fprintft   fputst   freadt   freportt   frewindt   fscanft   fseekt   fskiplt   ftellt	   functionst   fwritet   get   genpatht   gett   getegidt   getenvt   geteuidt   getgidt   getpgrpt   getpidt   getppidt   getuidt   globt   gtt   gui_modet   history_controlt   history_filet   history_sizet   history_timestamp_format_stringt   homet   horzcatR;   t   ifelset   ignore_function_time_stampt
   inferiortot	   info_filet   info_programt   inlinet   inputt   intmaxt   intminR   t   is_absolute_filenamet   isargoutt   isboolt   iscellt	   iscellstrt   ischart	   iscomplexR   t   isfieldt   isfloatt   isglobalt   ishandlet   isieeet   isindext	   isintegert	   islogicalt   ismatrixt   ismethodt   isnullt	   isnumerict   isobjectRP   t   is_rooted_relative_filenamet   issortedt   isstructt	   isvarnamet   kbhitt   keyboardt   killt   lasterrt	   lasterrort   lastwarnt   ldividet   leR   t   linkR   t   logicalt   lstatt   ltt   make_absolute_filenamet   makeinfo_programt   max_recursion_deptht   mergeR   t	   mfilenamet   minust	   mislockedt   mkdirt   mkfifot   mkstempt   mldividet   mlockt   mouse_wheel_zoomt   mpowert   mrdividet   mtimest   munlockt   nargint   nargoutt   native_float_formatR   t   net   nfieldst   nnzt   normt   notR   t   nzmaxt   octave_config_infot   octave_core_file_limitt   octave_core_file_namet   octave_core_file_optionsR   t   ort   output_max_field_widtht   output_precisiont   page_output_immediatelyt   page_screen_outputt   patht   pathsept   pauset   pcloseR   R   t   pipet   plust   popent   powert   print_empty_dimensionst   printft   print_struct_array_contentst   prodt   program_invocation_namet   program_namet   putenvt   putst   pwdt   quitRv   t   rdividet   readdirt   readlinkt   read_readline_init_fileR   R   t   rehasht   renamet   repelemst   re_read_readline_init_filet   resetR   t   resizet   restoredefaultpatht   rethrowt   rmdirt   rmfieldt   rmpatht   rowst   save_header_format_stringt   save_precisiont   saving_historyt   scanft   sett   setenvt	   shell_cmdt   sighup_dumps_octave_coret   sigterm_dumps_octave_coret   silent_functionst   singleR   t
   size_equalt   sizemaxt   sizeoft   sleept   sourcet   sparse_auto_mutatet   split_long_rowst   sprintfR   t   sscanft   statt   stderrt   stdint   stdoutt   strcmpt   strcmpit   string_fill_chart   strncmpt   strncmpit   structt   struct_levels_to_printt   strvcatt   subsasgnt   subsreft   sumt   sumsqt
   superiortot   suppress_verbose_help_messaget   symlinkt   systemt   tict   tilde_expandt   timest   tmpfilet   tmpnamt   toct   touppert	   transposet   truet   typeinfot   umaskt   uminust   unamet   undo_string_escapest   unlinkt   uplust   uppert   usaget   usleept   vect	   vectorizet   vertcatt   waitpidt   warningt   warrantyt   whos_line_formatt	   yes_or_noR   R   t   InfR   t   NaNt   closet   loadt   whot   whosR   t   accumdimR    R9   R3   t	   addtodatet   allchildt   ancestort   anovat   arch_fitt   arch_rndt	   arch_testt   areat   arma_rndt   arrayfunt   asciit   asctimeR-   R   t   assertR&   t   autoreg_matrixt   autumnt   axest   axist   bart   barht   bartlettt   bartlett_testt   beept   betacdft   betainvt   betapdft   betarndt   bicgstabt   bicubict   binaryt   binocdft   binoinvt   binopdft   binorndt   bitcmpt   bitgett   bitsett   blackmant   blanksR   t   bonet   boxt   brightent   calendart   castt
   cauchy_cdft
   cauchy_invt
   cauchy_pdft
   cauchy_rndt   caxist   celldispt   centert   cgst   chisquare_test_homogeneityt   chisquare_test_independenceR   t   clat   clabelt   clft   clockt   cloglogt   closereqt   colont   colorbart   colormapt   colpermt   comett   common_sizet   commutation_matrixR   t   compare_versionst   compasst   computert   condt   condestt   contourt   contourct   contourft   contrastt   convt   convhullt   coolt   coppert   copyfilet   cort   corrcoeft   cor_testR   R6   t   covRQ   Rn   R0   t   cstrcatt   csvreadt   csvwritet   ctimet   cumtrapzt   curlt   cutt   cylindert   datet   datenumt   datestrt   datetickt   datevect   dblquadt   dealt   deblankt   deconvt   delaunayt	   delaunaynt   deletet   demot   detrendt   diffparat   diffuset   dirt   discrete_cdft   discrete_invt   discrete_pdft   discrete_rndt   displayt
   divergencet   dlmwritet   dost   dsearcht   dsearchnt   duplication_matrixt   durbinlevinsont	   ellipsoidt   empirical_cdft   empirical_invt   empirical_pdft   empirical_rndt   eomdayt   errorbart   etimet	   etreeplott   examplet   expcdft   expinvt   expmt   exppdft   exprndt	   ezcontourt
   ezcontourft   ezmesht   ezmeshct   ezplott   ezpolart   ezsurft   ezsurfcRp   Ry   t   failt   fcdft   feathert   fftconvt   fftfiltt   fftshiftt   figuret
   fileattribt	   filepartst   fillt   findallt   findobjt   findstrt   finvt   flagR   R   R   t   fpdft   fplott	   fractdifft   freqzt
   freqz_plott   frndt   fsolvet   f_test_regressiont   ftpt   fullfilet   fzerot   gamcdft   gaminvt   gampdft   gamrndt   gcat   gcbft   gcbot   gcft
   genvarnamet   geocdft   geoinvt   geopdft   georndt   getfieldt   ginputt   glpkt   glst   gplott   gradientt   graphics_toolkitt   grayt   gridt   griddatat	   griddatant   gtextt   gunzipt   gzipR   t   hammingR   t   hanningt   hggroupt   hiddenR   t   histt   histct   holdt   hott   hotelling_testt   housht   hsvt   hurstt   hygecdft   hygeinvt   hygepdft   hygerndt   idividet	   ifftshiftt   imaget   imagesct   imfinfot   imreadt   imshowt   imwritet   indext   infot	   inpolygont	   inputnamet   interpftt   interpnt	   intersectR   t   iqrt   isat
   isdefinitet   isdirt   is_duplicate_entryR   R   t   isfiguret   ishermitiant
   ishghandlet   is_leap_yeart   islettert   ismact   ismembert   ispcRq   t   ispropR   t   issquaret	   isstrpropt   issymmetrict   isunixt   is_valid_file_idR   t   jett   kendallt   kolmogorov_smirnov_cdft   kolmogorov_smirnov_testt   kruskal_wallis_testt   krylovt   kurtosist   laplace_cdft   laplace_invt   laplace_pdft   laplace_rndt   legendRm   t   licenseR  t   linkpropt   list_primest	   loadaudiot   loadobjt   logistic_cdft   logistic_invt   logistic_pdft   logistic_rndt   logitt   loglogt	   loglogerrt   logmt   logncdft   logninvt   lognpdft   lognrndR   t   lookfort
   ls_commandt	   lsqnonnegR   t   mahalanobist   manovat
   matlabroott   mcnemar_testt   meant   meansqt   mediant   menut   mesht   meshcR   t   meshzt   mexextt   mgett   mkppt   modet   momentt   movefilet   mpolest   mputt   namelengthmaxt   nargchkt
   nargoutchkt   nbincdft   nbininvt   nbinpdft   nbinrndRx   R   t   newplott   newst   nonzerost   normcdft   normestt   norminvt   normpdft   normrndt   nowRG   t   nullt   oceant   olst
   onenormestt   optimgett   optimsett   orderfieldst   orientt   ortht   packt   paretot   parseparamsR   t   patcht   pathdeft   pcgt   pchipt   pcolort   pcrt   peakst   periodogramt   perlRw   t   piet   pinkt   planerott	   playaudiot   plott
   plotmatrixt   plotyyt   poisscdft   poissinvt   poisspdft   poissrndt   polart   polyt
   polyaffinet   polyareat	   polyderivt   polyfitt   polygcdt   polyintt   polyoutt
   polyreducet   polyvalt   polyvalmt   postpadt   powersett   ppdert   ppintt   ppjumpst   ppplott   ppvalt	   pqpnonnegt   prepadRr   t   printt   print_usaget   prismt   probitt   qpt   qqplott   quadcct   quadgkt   quadlt   quadvt   quivert   qzhesst   rainbowt   randit   ranget   rankt   ranksRu   RD   RC   RE   t   recordt   rectangle_lwt   rectangle_swt   rectintt   refresht   refreshdatat   regexptranslateR   t   residuet   ribbont   rindext   rootst   roseR   t   rotdimt   rreft   runt	   run_countt   rundemost   run_testt   runtestst   saveast	   saveaudiot   saveobjt   savepatht   scatterR*   t   semilogxt   semilogxerrt   semilogyt   semilogyerrt   setaudiot   setdifft   setfieldt   setxort   shadingt   shiftR   t	   sign_testt   sincR   t   sinetonet   sinewavet   skewnesst   slicet   sombrerot   sortrowst	   spaugmentt	   spconvertt   spdiagst   spearmant   spectral_adft   spectral_xdft   speculart   speedt   spencert   speyet   spfunt   spheret   spinmapt   splinet   sponest   sprandt   sprandnt	   sprandsymt   springt   spstatst   spyt   sqpt   stairst
   statisticst   stdt   stdnormal_cdft   stdnormal_invt   stdnormal_pdft   stdnormal_rndt   stemt   stftt   strcatt   strchrt   strjustt   strmatcht   strreadt   strsplitt   strtokt   strtrimt   strtrunct	   structfunt
   studentizet   subplott	   subsindext   subspacet   substrt	   substructt   summert   surft   surfacet   surfct   surflt   surfnormt   svdst	   swapbytest   sylvester_matrixt   symvart	   synthesist   tableR#   t   tart   tcdft   tempdirt   tempnamet   testR   t   textreadt   textscant   tinvt   titleR   t   tpdft   tracet   trapzt
   treelayoutt   treeplott   triangle_lwt   triangle_swR   t   trimesht
   triplequadt   triplott   trisurfR   t   trndt   tsearchnt   t_testt   t_test_regressiont   typet   unidcdft   unidinvt   unidpdft   unidrndt   unifcdft   unifinvt   unifpdft   unifrndt   uniont   uniquet   unixt   unmkppt   unpackt   untabifyt   untarRO   t   unzipt   u_testt   validatestringR   t   vart   var_testt   vecht   vert   versiont   viewt   voronoit   voronoint   waitforbuttonpresst   wavreadt   wavwritet   wblcdft   wblinvt   wblpdft   wblrndt   weekdayt
   welch_testt   whatt   whitet   whitebgt   wienrndt   wilcoxon_testR   t   wintert   xlabelt   xlimt   ylabelt
   yulewalkert   zipt   zlabelt   z_testRY   t   amdt   balanceR\   R]   RZ   R^   R[   t   bitpackR   t   builtint   ccolamdt   cellfunt
   cellslicest   cholt
   choldeletet
   cholinsertt   cholinvt	   cholshiftt
   cholupdatet   colamdt   colloct	   convhullnt   convnt   csymamdt   cummaxt   cummint   daspkt   daspk_optionst   dasrtt   dasrt_optionst   dasslt   dassl_optionst   dbcleart   dbdownt   dbstackt   dbstatust   dbstopt   dbtypet   dbupt   dbwheret   dett   dlmreadt   dmpermRo   t   eigt   eigst   endgrentt   endpwentt   etreet   fftt   fftnt   fftwt   filterR   t   fullRs   t   getgrentt   getgrgidt   getgrnamt   getpwentt   getpwnamt   getpwuidt	   getrusaget   givenst   gmtimet   gnuplot_binaryt   hesst   ifftt   ifftnt   invt   isdebugmodet   issparset   kront	   localtimet   lookupt   lsodet   lsode_optionst   lut   luinct   luupdatet   matrix_typet   maxt   mint   mktimet   pinvt   qrt   qrdeletet   qrinsertt   qrshiftt   qrupdatet   quadt   quad_optionst   qzR   t   randet   randgR   t   randpt   randpermt   rcondt   regexpt   regexpit	   regexprept   schurt   setgrentt   setpwentt   sortt   spalloct   sparset   spparmst   sprankt   sqrtmt   strfindt   strftimet   strptimet   strrept   svdt
   svd_drivert   sylt   symamdt   symbfactt   symrcmt   timet   tsearcht   typecastt   urlreadt   urlwriteRI   R   R!   R8   R:   R2   R4   RJ   t   argR,   R.   R   R   R%   R(   R_   R`   Ra   t   bincoefft   cbrtRT   RL   R   R   R5   R7   R/   R1   Rd   Re   Rf   Rg   R<   t   finiteRR   RS   t   fmodRi   Rj   Rk   RM   t   isalnumt   isalphat   isasciit   iscntrlt   isdigitR   t   isgraphR   t   islowert   isnaR   t   isprintt   ispunctt   isspacet   isuppert   isxdigitRt   t   lgammaR>   t   lowerRV   RN   RW   RU   t   roundbR)   R+   RX   R   R   RF   R"   R$   t   toasciit   tolowert   xort   EDITORt	   EXEC_PATHt   It
   IMAGE_PATHt   NAt   OCTAVE_HOMEt   OCTAVE_VERSIONt   PAGERt   PAGER_FLAGSt   SEEK_CURt   SEEK_ENDt   SEEK_SETt   SIGt   S_ISBLKt   S_ISCHRt   S_ISDIRt   S_ISFIFOt   S_ISLNKt   S_ISREGt   S_ISSOCKt	   WCONTINUEt	   WCOREDUMPt   WEXITSTATUSt   WIFCONTINUEDt	   WIFEXITEDt   WIFSIGNALEDt
   WIFSTOPPEDt   WNOHANGt   WSTOPSIGt   WTERMSIGt	   WUNTRACEDs   [%#].*$s   ^\s*functionR   t   __FILE__t   __LINE__R   R   R   R   R   t   doR   R   R   t   end_try_catcht   end_unwind_protectt   endclassdeft	   endeventst   endfort   endfunctiont   endift
   endmethodst   endpropertiest	   endswitcht   endwhileR   R   R   R   R   R   R   R   R   t   staticR   R   t   untilt   unwind_protectt   unwind_protect_cleanupR   R   s   \bs   -=|!=|!|/=|--s   -|==|~=|<|>|<=|>=|&&|&|~|\|\|?s$   \*=|\+=|\^=|\/=|\\=|\*\*|\+\+|\.\*\*s   \.\*|\*|\+|\.\^|\.\\|\.\/|\/|\\s   [\[\](){}:@.,]s   =|:|;s   "[^"]*"s&   (\d+\.\d*|\d*\.\d+)([eEf][+-]?[0-9]+)?s   \d+[eEf][+-]?[0-9]+s   \d+s   (?<=[\w)\].])\'+s   (?<![\w)\].])\'R   s   [a-zA-Z_]\w*R   R   s   [^']*'s   #pops0   (\s*)(?:(.+)(\s*)(=)(\s*))?(.+)(\()(.*)(\))(\s*)s   (\s*)([a-zA-Z_]\w*)(=  R  R  R  s   allR  s   anyR  s   argvR  R  R  R  R  R  R  R   R!  R"  s   catR#  R$  s   charR&  R'  R(  R)  R*  R+  s   complexR,  R-  R.  R/  R0  R1  R2  R3  R4  R5  R6  s   diagR7  s   dispR8  R9  R:  R;  R<  R=  s   epsR>  s   errnoR@  s   errors   evalRC  s   execRE  s   exits   eyeRG  RH  RI  RJ  RK  RL  RM  RN  RO  RP  RQ  RR  RS  RT  RU  RV  RW  RX  RY  RZ  s   forkR\  R]  R^  R_  R`  Ra  Rb  Rc  Rd  Re  Rf  Rg  Rh  Ri  s   gets   getegids   getenvs   geteuids   getgids   getpgrps   getpids   getppids   getuidRs  Rt  Ru  Rv  Rw  Rx  Ry  Rz  R{  s   hypotR|  R}  R~  R  R  R  s   inputR  R  s   ipermuteR  R  R  R  R  R  R  s   isemptyR  R  R  R  R  R  R  R  R  R  R  s	   isnumericR  s   isrealR  R  R  R  R  R  s   killR  R  R  R  R  s   lengths   links   linspaceR  s   lstatR  R  R  R  R  s   methodsR  R  R  s   mkdirs   mkfifoR  R  R  R  R  R  R  R  R  R  R  s   ndimsR  R  R  R  R  s   numelR  R  R  R  R  s   oness   orR  R  R  R  s   paths   pathseps   pauseR  s   permutes   pis   pipeR  s   popenR  R  R  R  R  R  R  s   putenvR  s   pwds   quits   ratsR  R  s   readlinkR  s   realmaxs   realminR  s   renameR  R  s   resets   reshapeR  R  R  s   rmdirR  R  R  R  R  R  R  s   setR  R  R  R  R  R  s   sizeR  R  R  R  s   sourceR  R  R   s   squeezeR  s   stats   stderrs   stdins   stdoutR  R  R  R	  R
  R  R  R  R  R  s   sumR  R  R  s   symlinks   systemR  R  s   timess   tmpfiles   tmpnamR  R  R  R  R  s   umaskR!  s   unameR#  s   unlinkR%  s   upperR'  R(  R)  R*  R+  s   waitpidR-  R.  R/  R0  s   zeross   infR1  s   nanR2  (   s   closes   loadR5  R6  (h  s
   accumarrayR7  s   acosds   acotds   acscdR8  R9  R:  R;  R<  R=  R>  R?  R@  RA  s   asciiRC  s   asecds   asinds   asserts   atandRE  RF  RG  RH  RI  RJ  RK  RL  RM  RN  RO  RP  RQ  RR  RS  RT  RU  RV  RW  RX  RY  RZ  R[  R\  R]  s   blkdiagR^  R_  R`  Ra  Rb  Rc  Rd  Re  Rf  Rg  Rh  s   centerRj  Rk  Rl  s	   circshiftRm  Rn  Ro  Rp  Rq  Rr  Rs  Rt  Ru  Rv  Rw  Rx  Ry  s   companRz  R{  R|  R}  R~  R  R  R  R  R  R  R  R  R  R  R  R  s   cosds   cotdR  s   cplxpairs   crosss   cscdR  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  s   dirR  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  s   factors	   factorialR  R  R  R  R  R  R  R  R  R  s   findallR  R  R  R  s   flipdims   fliplrs   flipudR  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  s   hadamardR  s   hankelR  R  R   s   hilbR  R  R  R  R  R  R  R  R	  R
  R  R  R  R  R  R  R  R  R  R  s   indexs   infoR  R  R  R  R  s   invhilbR  R  R  s   isdirR   s   isequals   isequalwithequalnansR!  R"  R#  R$  R%  R&  R'  R(  s   isprimeR)  s   isscalarR*  R+  R,  R-  R.  s   isvectorR/  R0  R1  R2  R3  R4  R5  R6  R7  R8  R9  R:  s   legendres   licenses   lineR<  R=  R>  R?  R@  RA  RB  RC  RD  RE  RF  RG  RH  RI  RJ  RK  s   logspaceRL  RM  RN  s   magicRO  RP  RQ  RR  RS  RT  RU  RV  RW  RX  s   meshgridRY  RZ  R[  R\  s   modeR^  R_  R`  Ra  Rb  Rc  Rd  Re  Rf  Rg  Rh  s   nchooseks   ndgridRi  Rj  Rk  Rl  Rm  Rn  Ro  Rp  Rq  s   nthrootRr  Rs  Rt  Ru  Rv  Rw  Rx  Ry  Rz  R{  R|  R}  s   pascalR~  R  R  R  R  R  R  R  R  s   permsR  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  s   primess   printR  R  R  R  R  R  R  R  R  R  R  R  R  s   rangeR  R  s   rats   reallogs   realpows   realsqrts   recordR  R  R  R  R  R  s   repmatR  R  s   rindexR  R  s   rosserR  R  R  R  R  R  R  R  R  R  R  R  s   secdR  R  R  R  R  R  R  R  R  R  s   shiftdimR  R  s   sindR  R  R  s   sliceR  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R   R  R  R  R  R  R  R  R  R	  R
  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  s   tables   tandR  R  R  R   R!  s   textR"  R#  R$  s   titles   toeplitzR&  R'  R(  R)  R*  R+  R,  s   trilR-  R.  R/  R0  s   triuR1  R2  R3  R4  s   typeR6  R7  R8  R9  R:  R;  R<  R=  s   unionR?  R@  RA  RB  RC  RD  s   unwrapRE  RF  RG  s   vanders   varRI  RJ  RK  s   versionRM  RN  RO  RP  RQ  RR  RS  RT  RU  RV  RW  RX  RY  RZ  R[  R\  R]  s	   wilkinsonR^  R_  R`  Ra  Rb  s   zipRd  Re  (   s   airyRf  Rg  s   besselhs   besselis   besseljs   besselks   besselyRh  s   bsxfunRi  Rj  Rk  Rl  Rm  Rn  Ro  Rp  Rq  Rr  Rs  Rt  Ru  Rv  Rw  Rx  Ry  Rz  R{  R|  R}  R~  R  R  R  R  R  R  R  R  R  R  R  R  s   dotR  R  R  R  R  R  R  R  s   filters   findR  s   gcdR  R  R  R  s   getpwnams   getpwuidR  R  R  R  R  R  R  R  R  R  R  R  s   lookupR  R  R  R  R  R  s   maxs   minR  R  R  R  R  R  R  R  R  R  s   randR  R  s   randnR  R  R  R  R  R  R  R  R  s   sortR  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  (M   s   abss   acoss   acoshs   acots   acoths   acscs   acschs   angles   args   asecs   asechs   asins   asinhs   atans   atanhs   betas   betaincs   betalnR  R  s   ceils   conjs   coss   coshs   cots   coths   cscs   cschs   erfs   erfcs   erfcxs   erfinvs   expR  s   fixs   floorR  s   gammas   gammaincs   gammalns   imags   isalnums   isalphaR  R  s   isdigits   isfiniteR  s   isinfs   islowerR  s   isnanR  R  s   isspaces   isupperR  s   lcmR  s   logs   lowers   mods   reals   rems   roundR  s   secs   sechs   signs   sins   sinhs   sqrts   tans   tanhR  R  R  (   R  R  R  R  R  R  R  R  R  s   SEEK_CURs   SEEK_ENDs   SEEK_SETR  s   S_ISBLKs   S_ISCHRs   S_ISDIRs   S_ISFIFOs   S_ISLNKs   S_ISREGs   S_ISSOCKR  s	   WCOREDUMPs   WEXITSTATUSs   WIFCONTINUEDs	   WIFEXITEDs   WIFSIGNALEDs
   WIFSTOPPEDs   WNOHANGs   WSTOPSIGs   WTERMSIGs	   WUNTRACED()   R  R  s   breaks   cases   catchs   classdefs   continueR  s   elses   elseifs   endR  R  R  R  R  R  R  R  R  R  R  s   eventss   fors   functions   gets   globals   ifs   methodss	   otherwises
   persistents
   propertiess   returns   setR  s   switchs   tryR   R!  R"  s   while(   R   R   R   R   R   R   R   t
   builtin_kwt
   command_kwt   function_kwt   loadable_kwt
   mapping_kwt   builtin_constsR   R   R   R	   R   t   ConstantR   R   R
   R   R   R   R   R   R   R   R   (    (    (    s:   /usr/lib/python2.7/dist-packages/pygments/lexers/matlab.pyR      s  			                                                                                                                                                                                                                                                                                           	     									c        -   B   s  e  Z d  Z d Z d g Z d d d g Z d g Z i d e j f d e	 d	 f e
 dF d3 d4 e	 f e
 e j e j e j d3 d4 e j f e
 e j d3 d4 e j f d5 e f d6 e f d7 e f d8 e f d9 e f d: e d; f d< e j f d= e j f d> e j f d? e f d@ e f g dA 6dB e dC f d@ e dC f g d; 6dD e e e e e e e j e e e e 
 dC f dE e e e j  dC f g d	 6Z RS(G   s<   
    For Scilab source code.

    .. versionadded:: 1.5
    t   Scilabt   scilabs   *.scis   *.sces   *.tsts   text/scilabs   //.*?$s   ^\s*functionR   R  R  R   R   R   R   R   R  R   R   R   R  R  R  R  R  R  R  R  R  R  R  R   R   R   Rj  R   R   R   R   R   R   R   R  R  R   R   R   R!  R"  R   R   s   \bs   -|==|~=|<|>|<=|>=|&&|&|~|\|\|?s   \.\*|\*|\+|\.\^|\.\\|\.\/|\/|\\s   [\[\](){}@.,=:;]s   "[^"]*"s   (?<=[\w)\].])\'+s   (?<![\w)\].])\'R   s&   (\d+\.\d*|\d*\.\d+)([eEf][+-]?[0-9]+)?s   \d+[eEf][+-]?[0-9]+s   \d+s   [a-zA-Z_]\w*R   R   s   [^']*'s   #pops0   (\s*)(?:(.+)(\s*)(=)(\s*))?(.+)(\()(.*)(\))(\s*)s   (\s*)([a-zA-Z_]\w*)()   s   __FILE__s   __LINE__s   breaks   cases   catchs   classdefs   continues   dos   elses   elseifs   ends   end_try_catchs   end_unwind_protects   endclassdefs	   endeventss   endfors   endfunctions   endifs
   endmethodss   endpropertiess	   endswitchs   endwhiles   eventss   fors   functions   gets   globals   ifs   methodss	   otherwises
   persistents
   propertiess   returns   sets   statics   switchs   trys   untils   unwind_protects   unwind_protect_cleanups   while(   R   R   R   R   R   R   R   R   t   SingleR   R   R   t   functions_kwt   commands_kwt	   macros_kwR	   R   t   variables_kwR)  R   R   R
   R   R   R   R   R   R   R   R   (    (    (    s:   /usr/lib/python2.7/dist-packages/pygments/lexers/matlab.pyR   V  sL   		     						(   R   R   t   pygments.lexerR    R   R   R   R   t   pygments.tokenR   R   R   R   R	   R
   R   R   R   R   t   pygments.lexersR   t   __all__R   t   compileR   R   R   R   (    (    (    s:   /usr/lib/python2.7/dist-packages/pygments/lexers/matlab.pyt   <module>
   s   (Fx6 