diff options
author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2011-04-04 12:46:14 +0100 |
---|---|---|
committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2011-04-04 12:46:14 +0100 |
commit | 37c9a8a5ac168832b1560e495d491ea9d36bd5b6 (patch) | |
tree | dad2247248c83b19ab0a60e97f4c412d35fad2c9 /pygments/lexers/postgres.py | |
parent | 98829589e3f9d4895c71ac1172a385278f61cdfa (diff) | |
download | pygments-37c9a8a5ac168832b1560e495d491ea9d36bd5b6.tar.gz |
Recognize NOTICE log level in psql output
Diffstat (limited to 'pygments/lexers/postgres.py')
-rw-r--r-- | pygments/lexers/postgres.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): |