summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwelterde <devnull@localhost>2007-09-09 16:47:52 +0200
committerwelterde <devnull@localhost>2007-09-09 16:47:52 +0200
commitd3861fc4a66f4c3c9c63c581f1cecaed593d2b51 (patch)
treec2e751e2f2b2345394f08a753e9d300653e739b1
parent6ada786e966038b75863fe3e3c6d00fdd2cecc3d (diff)
downloadpygments-d3861fc4a66f4c3c9c63c581f1cecaed593d2b51.tar.gz
minor
-rw-r--r--pygments/lexers/text.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/pygments/lexers/text.py b/pygments/lexers/text.py
index 6999db89..12abd35d 100644
--- a/pygments/lexers/text.py
+++ b/pygments/lexers/text.py
@@ -718,12 +718,14 @@ class WeechatLogLexer(RegexLexer):
tokens = {
'root' : [
# date
- (r'(\d{4} \w{3} \d{2} \d{2}:\d{2}:\d{2})(\s+)', bygroups(Comment.Preproc, Whitespace)),
+ (r'(\d{4} \w{3} \d{2} \d{2}:\d{2}:\d{2})(\s+)',
+ bygroups(Comment.Preproc, Whitespace)),
# operators
(r'(-=-|<--|-->|-@-|-P-)(.*)', bygroups(Operator, Text)),
# messages
(r'(<)(\w+)(>)(.*)', bygroups(Operator, Name, Operator, Text)),
# log start/end
- (r'(\*\*\*\*[\w\s]+)(\d{4} \w{3} \d{2} \d{2}:\d{2}:\d{2}\s+)(\*\*\*\*)', Comment)
+ (r'(\*\*\*\*[\w\s]+)(\d{4} \w{3} \d{2} \d{2}:\d{2}:\d{2}\s+)(\*\*\*\*)',
+ Comment)
]
- } \ No newline at end of file
+ }