From 1c9efd94c23b580050494fc8d18f11d18ed23a5d Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Mon, 4 Apr 2011 11:52:37 +0100 Subject: Colon after the message level consistent with the level name in psql notices --- 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 aab6b556..a460d1fe 100644 --- a/pygments/lexers/postgres.py +++ b/pygments/lexers/postgres.py @@ -70,7 +70,7 @@ class PostgresLexer(RegexLexer): re_prompt = re.compile(r'^([a-zA-Z_][a-zA-Z0-9_]+)?[=\-\(][#>]') re_psql_command = re.compile(r'(\s*)(\\.+?)(\s+)$') re_error = re.compile(r'ERROR:') -re_message = re.compile(r'(DEBUG|INFO|WARNING|ERROR|HINT|LINE [0-9]+:?)(.*?\n)') +re_message = re.compile(r'((?:DEBUG|INFO|WARNING|ERROR|HINT|LINE [0-9]+):)(.*?\n)') re_charhint = re.compile(r'\s*\^\s*\n') class PostgresConsoleLexer(Lexer): -- cgit v1.2.1