summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
+ }