1. nibalizer
  2. pygments-main

Commits

Daniele Varrazzo  committed 04fb270

Case insensitive detection of sql language in PostgreSQL stored procedures

  • Participants
  • Parent commits d7fa53d
  • Branches default

Comments (0)

Files changed (1)

File pygments/lexers/postgres.py

View file
  • Ignore whitespace
             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 ]