Commits

Daniele Varrazzo  committed 04fb270

Case insensitive detection of sql language in PostgreSQL stored procedures

  • Participants
  • Parent commits d7fa53d

Comments (0)

Files changed (1)

File 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 ]