Back to index

moin  1.9.0~rc2
Public Member Functions | Static Public Attributes
MoinMoin.support.pygments.lexers.math.MatlabLexer Class Reference
Inheritance diagram for MoinMoin.support.pygments.lexers.math.MatlabLexer:
Inheritance graph
[legend]
Collaboration diagram for MoinMoin.support.pygments.lexers.math.MatlabLexer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def analyse_text

Static Public Attributes

string name = 'Matlab'
list aliases = ['matlab', 'octave']
list filenames = ['*.m']
list mimetypes = ['text/matlab']
list elfun
list specfun
list elmat
dictionary tokens

Detailed Description

For Matlab (or GNU Octave) source code.
Contributed by Ken Schutte <kschutte@csail.mit.edu>.

*New in Pygments 0.10.*

Definition at line 99 of file math.py.


Member Function Documentation

Definition at line 195 of file math.py.

00195 
00196     def analyse_text(text):
00197         if re.match('^\s*%', text, re.M): # comment
00198             return 0.9
00199         elif re.match('^!\w+', text, re.M): # system cmd
00200             return 0.9
00201         return 0.1


Member Data Documentation

list MoinMoin.support.pygments.lexers.math.MatlabLexer.aliases = ['matlab', 'octave'] [static]

Definition at line 107 of file math.py.

Initial value:
["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","log2","pow2",
             "realpow","reallog","realsqrt","sqrt","nthroot","nextpow2","abs",
             "angle","complex","conj","imag","real","unwrap","isreal","cplxpair",
             "fix","floor","ceil","round","mod","rem","sign"]

Definition at line 127 of file math.py.

Initial value:
["zeros","ones","eye","repmat","rand","randn","linspace","logspace",
             "freqspace","meshgrid","accumarray","size","length","ndims","numel",
             "disp","isempty","isequal","isequalwithequalnans","cat","reshape",
             "diag","blkdiag","tril","triu","fliplr","flipud","flipdim","rot90",
             "find","end","sub2ind","ind2sub","bsxfun","ndgrid","permute",
             "ipermute","shiftdim","circshift","squeeze","isscalar","isvector",
             "ans","eps","realmax","realmin","pi","i","inf","nan","isnan",
             "isinf","isfinite","j","why","compan","gallery","hadamard","hankel",
             "hilb","invhilb","magic","pascal","rosser","toeplitz","vander",
             "wilkinson"]

Definition at line 141 of file math.py.

Definition at line 108 of file math.py.

Definition at line 109 of file math.py.

Definition at line 106 of file math.py.

Initial value:
["airy","besselj","bessely","besselh","besseli","besselk","beta",
               "betainc","betaln","ellipj","ellipke","erf","erfc","erfcx",
               "erfinv","expint","gamma","gammainc","gammaln","psi","legendre",
               "cross","dot","factor","isprime","primes","gcd","lcm","rat",
               "rats","perms","nchoosek","factorial","cart2sph","cart2pol",
               "pol2cart","sph2cart","hsv2rgb","rgb2hsv"]

Definition at line 135 of file math.py.

Definition at line 152 of file math.py.


The documentation for this class was generated from the following file: