summaryrefslogtreecommitdiff
path: root/pygments/lexers/postgres.py
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2011-04-04 11:42:24 +0100
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2011-04-04 11:42:24 +0100
commited30a26ae48d85873a6c421335db5066f29f0425 (patch)
treeeb2ed0f2939813e0b669f5af6c3fa188cd20aca3 /pygments/lexers/postgres.py
parent7b4dcdde6cc2f5afff7da8bc26645b5f302ffec9 (diff)
downloadpygments-ed30a26ae48d85873a6c421335db5066f29f0425.tar.gz
Added prompt style => in psql lexer
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 b0cceab3..aab6b556 100644
--- a/pygments/lexers/postgres.py
+++ b/pygments/lexers/postgres.py
@@ -67,7 +67,7 @@ class PostgresLexer(RegexLexer):
]
}
-re_prompt = re.compile(r'^([a-zA-Z_][a-zA-Z0-9_]+)?[=\-\(]#')
+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)')