summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pygments/lexers/postgres.py2
-rw-r--r--tests/examplefiles/postgresql_test.txt2
2 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/postgres.py b/pygments/lexers/postgres.py
index 908beed8..afef1ea4 100644
--- a/pygments/lexers/postgres.py
+++ b/pygments/lexers/postgres.py
@@ -26,7 +26,7 @@ __all__ = [ 'PostgresLexer', 'PlPgsqlLexer', 'PostgresConsoleLexer' ]
line_re = re.compile('.*?\n')
-language_re = re.compile(r"\s+LANGUAGE\s+'?(\w+)'?")
+language_re = re.compile(r"\s+LANGUAGE\s+'?(\w+)'?", re.IGNORECASE)
class PostgresLexer(RegexLexer):
"""
diff --git a/tests/examplefiles/postgresql_test.txt b/tests/examplefiles/postgresql_test.txt
index c02cb1f2..07d9d8a9 100644
--- a/tests/examplefiles/postgresql_test.txt
+++ b/tests/examplefiles/postgresql_test.txt
@@ -12,7 +12,7 @@ AS $$
if a > b:
return a
return b
-$$ LANGUAGE plpythonu;
+$$ language plpythonu;
CREATE FUNCTION nested_lexers (a integer, b integer)
$function$