diff options
author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2011-04-05 15:59:35 +0100 |
---|---|---|
committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2011-04-05 15:59:35 +0100 |
commit | f5d803e74ae2f0e77da516478b29c035c46d6c4d (patch) | |
tree | 25d946791029e1dadec5e8a3475da4a9fb0ed60b /tests/examplefiles/postgresql_test.txt | |
parent | c31850bd847200d25c6c484dd9acfa7e62c86e8a (diff) | |
download | pygments-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.txt | 23 |
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; |