From 3271b375f38b1baeda54eb4809ec9404c34b01d4 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Thu, 1 Sep 2011 15:19:10 +0100 Subject: Parse CONTEXT in Postgres output --- pygments/lexers/postgres.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pygments/lexers/postgres.py') diff --git a/pygments/lexers/postgres.py b/pygments/lexers/postgres.py index 4c5bd007..902edd5b 100644 --- a/pygments/lexers/postgres.py +++ b/pygments/lexers/postgres.py @@ -231,7 +231,7 @@ re_psql_command = re.compile(r'(\s*)(\\.+?)(\s+)$') re_error = re.compile(r'(ERROR|FATAL):') re_message = re.compile( r'((?:DEBUG|INFO|NOTICE|WARNING|ERROR|' - r'FATAL|HINT|DETAIL|LINE [0-9]+):)(.*?\n)') + r'FATAL|HINT|DETAIL|CONTEXT|LINE [0-9]+):)(.*?\n)') def lookahead(x): """Wrap an iterator and allow pushing back an item.""" -- cgit v1.2.1