summaryrefslogtreecommitdiff
path: root/tests/examplefiles/postgresql_test.txt
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2011-04-05 15:59:35 +0100
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2011-04-05 15:59:35 +0100
commitf5d803e74ae2f0e77da516478b29c035c46d6c4d (patch)
tree25d946791029e1dadec5e8a3475da4a9fb0ed60b /tests/examplefiles/postgresql_test.txt
parentc31850bd847200d25c6c484dd9acfa7e62c86e8a (diff)
downloadpygments-f5d803e74ae2f0e77da516478b29c035c46d6c4d.tar.gz
Adding support to add sub-languages in dollar-quoted strings
Diffstat (limited to 'tests/examplefiles/postgresql_test.txt')
-rw-r--r--tests/examplefiles/postgresql_test.txt23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/examplefiles/postgresql_test.txt b/tests/examplefiles/postgresql_test.txt
new file mode 100644
index 00000000..b818c33a
--- /dev/null
+++ b/tests/examplefiles/postgresql_test.txt
@@ -0,0 +1,23 @@
+CREATE OR REPLACE FUNCTION something() RETURNS int4 AS
+$x$
+BEGIN
+ RETURN 42;
+END
+$x$
+LANGUAGE plpgsql;
+
+CREATE FUNCTION pymax (a integer, b integer)
+ RETURNS integer
+AS $$
+ if a > b:
+ return a
+ return b
+$$ LANGUAGE plpythonu;
+
+CREATE FUNCTION nested_lexers (a integer, b integer)
+$function$
+BEGIN
+ RETURN ($1 ~ $q$[\t\r\n\v\\]$q$);
+END;
+$function$
+LANGUAGE sql;