summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2015-01-21 07:43:26 +0100
committerGeorg Brandl <georg@python.org>2015-01-21 07:43:26 +0100
commitbafb45a9a47e6c40b550c77402e1dd66f93129ef (patch)
treedc307ddf6cae0e2aed6c2b2f29f471fb72f94d70
parent7b9fa24091fe62a1be03c5c7889ce1ba6248c6a2 (diff)
downloadpygments-bafb45a9a47e6c40b550c77402e1dd66f93129ef.tar.gz
Fix highlighting of certain IRC logs formats (closes #1076).
-rw-r--r--CHANGES7
-rw-r--r--pygments/lexers/textfmts.py2
2 files changed, 8 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index 5145acb4..a0df0a9f 100644
--- a/CHANGES
+++ b/CHANGES
@@ -7,6 +7,13 @@ pull request numbers to the requests at
<http://bitbucket.org/birkenfeld/pygments-main/pull-requests/merged>.
+Version 2.0.3
+-------------
+(not released yet)
+
+- Fix highlighting of certain IRC logs formats (#1076).
+
+
Version 2.0.2
-------------
(released Jan 20, 2014)
diff --git a/pygments/lexers/textfmts.py b/pygments/lexers/textfmts.py
index 189d334a..60251940 100644
--- a/pygments/lexers/textfmts.py
+++ b/pygments/lexers/textfmts.py
@@ -39,7 +39,7 @@ class IrcLogsLexer(RegexLexer):
(?:\d{1,4})
[T ])? # Date/time separator: T or space
(?: \d?\d [:.])* # Time as :/.-separated groups of 1 or 2 digits
- (?: \d?\d [:.])
+ (?: \d?\d)
)
(?: \]|\))?\s+ # Closing bracket or paren for the timestamp
|