diff options
author | Georg Brandl <georg@python.org> | 2015-01-21 07:43:26 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2015-01-21 07:43:26 +0100 |
commit | bafb45a9a47e6c40b550c77402e1dd66f93129ef (patch) | |
tree | dc307ddf6cae0e2aed6c2b2f29f471fb72f94d70 | |
parent | 7b9fa24091fe62a1be03c5c7889ce1ba6248c6a2 (diff) | |
download | pygments-bafb45a9a47e6c40b550c77402e1dd66f93129ef.tar.gz |
Fix highlighting of certain IRC logs formats (closes #1076).
-rw-r--r-- | CHANGES | 7 | ||||
-rw-r--r-- | pygments/lexers/textfmts.py | 2 |
2 files changed, 8 insertions, 1 deletions
@@ -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 | |