From 945f3619983ba80b536b5f54d9c55b5abe4874f5 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Wed, 13 Apr 2011 09:44:45 +0100 Subject: Case insensitive detection of sql language in PostgreSQL stored procedures --- 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 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 ] -- cgit v1.2.1