Back to index

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

List of all members.

Static Public Attributes

string name = 'S'
list aliases = ['splus', 's', 'r']
list filenames = ['*.S', '*.R']
list mimetypes = ['text/S-plus', 'text/S', 'text/R']
dictionary tokens

Detailed Description

For S, S-plus, and R source code.

*New in Pygments 0.10.*

Definition at line 343 of file math.py.


Member Data Documentation

list MoinMoin.support.pygments.lexers.math.SLexer.aliases = ['splus', 's', 'r'] [static]

Definition at line 351 of file math.py.

Definition at line 352 of file math.py.

list MoinMoin.support.pygments.lexers.math.SLexer.mimetypes = ['text/S-plus', 'text/S', 'text/R'] [static]

Definition at line 353 of file math.py.

Definition at line 350 of file math.py.

Initial value:
{
        'comments': [
            (r'#.*$', Comment.Single),
        ],
        'valid_name': [
            (r'[a-zA-Z][0-9a-zA-Z\._]+', Text),
            (r'`.+`', String.Backtick),
        ],
        'punctuation': [
            (r'\[|\]|\[\[|\]\]|\$|\(|\)|@|:::?|;|,', Punctuation),
        ],
        'keywords': [
            (r'for(?=\s*\()|while(?=\s*\()|if(?=\s*\()|(?<=\s)else|'
             r'(?<=\s)break(?=;|$)|return(?=\s*\()|function(?=\s*\()',
             Keyword.Reserved)
        ],
        'operators': [
            (r'<-|-|==|<=|>=|<|>|&&|&|!=|\|\|?', Operator),
            (r'\*|\+|\^|/|%%|%/%|=', Operator),
            (r'%in%|%*%', Operator)
        ],
        'builtin_symbols': [
            (r'(NULL|NA|TRUE|FALSE|NaN)\b', Keyword.Constant),
            (r'(T|F)\b', Keyword.Variable),
        ],
        'numbers': [
            (r'(?<![0-9a-zA-Z\)\}

Definition at line 355 of file math.py.


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