From 37c9a8a5ac168832b1560e495d491ea9d36bd5b6 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Mon, 4 Apr 2011 12:46:14 +0100 Subject: Recognize NOTICE log level in psql 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 ab797f2b..79cfe3e1 100644 --- a/pygments/lexers/postgres.py +++ b/pygments/lexers/postgres.py @@ -77,7 +77,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|NOTICE|WARNING|ERROR|HINT|LINE [0-9]+):)(.*?\n)') re_charhint = re.compile(r'\s*\^\s*\n') class PostgresConsoleLexer(Lexer): -- cgit v1.2.1