Back to index

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

List of all members.

Public Member Functions

def makelistre

Static Public Attributes

string name = 'SquidConf'
list aliases = ['squidconf', 'squid.conf', 'squid']
list filenames = ['squid.conf']
list mimetypes = ['text/x-squidconf']
 flags = re.IGNORECASE
list keywords
list opts
list actions
list actions_stats
list actions_log = [ "status", "enable", "disable", "clear"]
list acls
string ip_re = r'\b(?:\d{1,3}\.){3}\d{1,3}\b'
dictionary tokens

Detailed Description

Lexer for `squid <http://www.squid-cache.org/>`_ configuration files.

*New in Pygments 0.9.*

Definition at line 837 of file text.py.


Member Function Documentation

Definition at line 944 of file text.py.

00944 
00945     def makelistre(list):
00946         return r'\b(?:'+'|'.join(list)+r')\b'


Member Data Documentation

Initial value:
[ "url_regex", "urlpath_regex", "referer_regex", "port",
             "proto", "req_mime_type", "rep_mime_type", "method",
             "browser", "user", "src", "dst", "time", "dstdomain", "ident",
             "snmp_community",
             ]

Definition at line 936 of file text.py.

Initial value:
[ "shutdown", "info", "parameter", "server_list",
                "client_list", r'squid\.conf',
                ]

Definition at line 925 of file text.py.

list MoinMoin.support.pygments.lexers.text.SquidConfLexer.actions_log = [ "status", "enable", "disable", "clear"] [static]

Definition at line 934 of file text.py.

Initial value:
[ "objects", "vm_objects", "utilization",
                      "ipcache", "fqdncache", "dns", "redirector", "io",
                      "reply_headers", "filedescriptors", "netdb",
                      ]

Definition at line 929 of file text.py.

list MoinMoin.support.pygments.lexers.text.SquidConfLexer.aliases = ['squidconf', 'squid.conf', 'squid'] [static]

Definition at line 845 of file text.py.

Definition at line 846 of file text.py.

Definition at line 848 of file text.py.

string MoinMoin.support.pygments.lexers.text.SquidConfLexer.ip_re = r'\b(?:\d{1,3}\.){3}\d{1,3}\b' [static]

Definition at line 942 of file text.py.

Definition at line 850 of file text.py.

Definition at line 847 of file text.py.

Definition at line 844 of file text.py.

Initial value:
[ "proxy-only", "weight", "ttl", "no-query", "default",
             "round-robin", "multicast-responder", "on", "off", "all",
             "deny", "allow", "via", "parent", "no-digest", "heap", "lru",
             "realm", "children", "credentialsttl", "none", "disable",
             "offline_toggle", "diskd", "q1", "q2",
             ]

Definition at line 918 of file text.py.

Initial value:
{
        'root': [
            (r'\s+', Text),
            (r'#', Comment, 'comment'),
            (makelistre(keywords), Keyword),
            (makelistre(opts), Name.Constant),
            # Actions
            (makelistre(actions), String),
            (r'stats/'+makelistre(actions), String),
            (r'log/'+makelistre(actions)+r'=', String),
            (makelistre(acls), Keyword),
            (ip_re+r'(?:/(?:'+ip_re+r')|\d+)?', Number),
            (r'\b\d+\b', Number),
            (r'\S+', Text),
        ],
        'comment': [
            (r'\s*TAG:.*', String.Escape, '#pop'),
            (r'.*', Comment, '#pop'),
        ],
    }

Definition at line 947 of file text.py.


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