diff options
| author | Adam Retter <adam.retter@googlemail.com> | 2014-11-10 17:55:51 +0000 |
|---|---|---|
| committer | Adam Retter <adam.retter@googlemail.com> | 2014-11-10 17:55:51 +0000 |
| commit | dc5148df4042d143b2bf55dcb1304ec3f6a38a1e (patch) | |
| tree | c09b3d525eac736a967b1e97f1a00980805b9cb7 /tests/examplefiles | |
| parent | 863a23ddeb34466dea4520074d2b31ee600e0558 (diff) | |
| download | pygments-dc5148df4042d143b2bf55dcb1304ec3f6a38a1e.tar.gz | |
Add XQuery 3.0 Annotations for functions and allow parameters to annotations
Diffstat (limited to 'tests/examplefiles')
| -rw-r--r-- | tests/examplefiles/example3.xq | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/tests/examplefiles/example3.xq b/tests/examplefiles/example3.xq index a399e1dd..f2dee2c1 100644 --- a/tests/examplefiles/example3.xq +++ b/tests/examplefiles/example3.xq @@ -6,7 +6,7 @@ declare variable $local:straight-var1 := 'one'; declare %private variable $local:private-var := 'secret'; declare %public variable $local:public-var := 'not-secret'; -declare %other:annotation variable $local:some-var := 'anything'; +declare %other:annotation('param1', "param2") variable $local:some-var := 'anything'; declare variable $local:straight-var2 := 'two'; @@ -104,3 +104,20 @@ declare function local:plays-by-character() { } </character> }; + +declare + %other:a + %private + %other:b('1') + %other:c("1", "2", "3", "4") +function local:very-annotated() { + let $thing := "thing" + return + $thing +}; + +declare %public function local:slightly-annotated() { + let $nothing := () + return + $nothing +}; |
