Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
proc
/
thread-self
/
root
/
usr
/
lib
/
python2.7
/
site-packages
/
pygments
/
lexers
/
File Content:
textfmts.pyc
� ��Tc @ s� d Z d d l Z d d l 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 d d l m Z d d d d g Z d e f d � � YZ d e f d � � YZ d e f d � � YZ d e f d � � YZ d S( s� pygments.lexers.textfmts ~~~~~~~~~~~~~~~~~~~~~~~~ Lexers for various text formats. :copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. i����N( t RegexLexert bygroups( t Textt Commentt Operatort Keywordt Namet Stringt Numbert Generict Literal( t ClassNotFoundt IrcLogsLexert TodotxtLexert HttpLexert GettextLexerc B s e Z d Z d Z d g Z d g Z d g Z e j e j BZ d Z i d e f d e d e e j e j � f d e d e e j e j � d f d e d e e j e e j � f d e d e e j e e e � f d e f g d 6d e j f d e d f g d 6Z RS( sD Lexer for IRC logs in *irssi*, *xchat* or *weechat* style. s IRC logst ircs *.weechatlogs text/x-irclogsk ( # irssi / xchat and others (?: \[|\()? # Opening bracket or paren for the timestamp (?: # Timestamp (?: (?:\d{1,4} [-/])* # Date as - or /-separated groups of digits (?:\d{1,4}) [T ])? # Date/time separator: T or space (?: \d?\d [:.])* # Time as :/.-separated groups of 1 or 2 digits (?: \d?\d [:.]) ) (?: \]|\))?\s+ # Closing bracket or paren for the timestamp | # weechat \d{4}\s\w{3}\s\d{2}\s # Date \d{2}:\d{2}:\d{2}\s+ # Time + Whitespace | # xchat \w{3}\s\d{2}\s # Date \d{2}:\d{2}:\d{2}\s+ # Time + Whitespace )? s ^\*\*\*\*(.*)\*\*\*\*$t ^s (\s*<[^>]*>\s*)$s/ (\s*<.*?>\s*) # Nick t msgso (\s*[*]\s+) # Star (\S+\s+.*?\n) # Nick + rest of message s� (\s*(?:\*{3}|<?-[!@=P]?->?)\s*) # Star(s) or symbols (\S+\s+) # Nick + Space (.*?\n) # Rest of message s ^.*?\nt roots \S+:(?!//)s .*\ns #pop( t __name__t __module__t __doc__t namet aliasest filenamest mimetypest ret VERBOSEt MULTILINEt flagst timestampR R t PreprocR t TagR R t InsertedR R t Attributet tokens( ( ( s<