diff options
| author | Georg Brandl <georg@python.org> | 2016-02-02 10:15:29 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2016-02-02 10:15:29 +0100 |
| commit | 17ac60f941c2b0df7c4c69ecdde6aa2835f30061 (patch) | |
| tree | f632d164a3a9e821e42246a291595b6ff63ca654 /tests/examplefiles | |
| parent | 5354cee4445619cd75b7c202585858073651d840 (diff) | |
| parent | 54f66c84f9901eecf67591fabd0390c67633ed21 (diff) | |
| download | pygments-17ac60f941c2b0df7c4c69ecdde6aa2835f30061.tar.gz | |
Merged in PHO/pygments-main (pull request #547)
Improvements for Erlang lexer
Diffstat (limited to 'tests/examplefiles')
| -rw-r--r-- | tests/examplefiles/99_bottles_of_beer.chpl | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/tests/examplefiles/99_bottles_of_beer.chpl b/tests/examplefiles/99_bottles_of_beer.chpl index 3629028d..cdc1e650 100644 --- a/tests/examplefiles/99_bottles_of_beer.chpl +++ b/tests/examplefiles/99_bottles_of_beer.chpl @@ -4,7 +4,7 @@ * by Brad Chamberlain and Steve Deitz * 07/13/2006 in Knoxville airport while waiting for flight home from * HPLS workshop - * compiles and runs with chpl compiler version 1.7.0 + * compiles and runs with chpl compiler version 1.12.0 * for more information, contact: chapel_info@cray.com * * @@ -71,10 +71,13 @@ proc computeAction(bottleNum) { // Modules... module M1 { var x = 10; + + var y = 13.0; } module M2 { - use M1; + use M1 except y; + use M1 only y; proc main() { writeln("M2 -> M1 -> x " + x); } @@ -148,10 +151,10 @@ class IntPair { var ip = new IntPair(17,2); write(ip); -var targetDom: {1..10}, +var targetDom = {1..10}, target: [targetDom] int; coforall i in targetDom with (ref target) { - targetDom[i] = i ** 3; + target[i] = i ** 3; } var wideOpen = 0o777, @@ -166,9 +169,11 @@ private module M3 { } private iter bar() { - + for i in 1..10 { + yield i; + } } private var x: int; -}
\ No newline at end of file +} |
