summaryrefslogtreecommitdiff
path: root/pygments/lexers/postgres.py
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2011-04-04 11:52:37 +0100
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2011-04-04 11:52:37 +0100
commit1c9efd94c23b580050494fc8d18f11d18ed23a5d (patch)
tree1440f034f072c0ecaaa7e35dedf8ba373030a809 /pygments/lexers/postgres.py
parented30a26ae48d85873a6c421335db5066f29f0425 (diff)
downloadpygments-1c9efd94c23b580050494fc8d18f11d18ed23a5d.tar.gz
Colon after the message level consistent with the level name in psql notices
Diffstat (limited to 'pygments/lexers/postgres.py')
-rw-r--r--pygments/lexers/postgres.py2
1 files changed, 1 insertions, 1 deletions
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):