Commits

Daniele Varrazzo committed 04fb270

Case insensitive detection of sql language in PostgreSQL stored procedures

Comments (0)

Files changed (1)

pygments/lexers/postgres.py

             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 ]