summaryrefslogtreecommitdiff
path: root/pygments/lexers/postgres.py
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2011-04-13 09:44:45 +0100
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2011-04-13 09:44:45 +0100
commit945f3619983ba80b536b5f54d9c55b5abe4874f5 (patch)
treed916f2f1c379ad4b09a6b604c83c61dd19be334f /pygments/lexers/postgres.py
parent6393f65faea81b5fde4f3a86abf778c7c5289305 (diff)
downloadpygments-945f3619983ba80b536b5f54d9c55b5abe4874f5.tar.gz
Case insensitive detection of sql language in PostgreSQL stored procedures
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 0e8af0c0..4b4ad44c 100644
--- a/pygments/lexers/postgres.py
+++ b/pygments/lexers/postgres.py
@@ -60,7 +60,7 @@ class PostgresLexer(RegexLexer):
yield (match.start(), String, match.group())
def _get_lexer(self, lang):
- if lang == 'sql':
+ if lang.lower() == 'sql':
return get_lexer_by_name('postgresql', **self.options)
tries = [ lang ]