Source

pygments / tests / examplefiles / example_file.fy

Diff from to

File tests/examplefiles/example_file.fy

 [3, 2, 1] reverse() each() |a| { puts(a) }
 "Hello" sub("ll", "y") println
 [3, 2, 1] map() |a| { a * 2 } inject(0) |s i| { s + i } println
+
+# test symbol highlighting
+['foo]
+['foo?!]
+{'foo}
+{'foo!?}
+{'foo:bar?!=&/:}
+('foo)
+
+# future sends
+42 @ to_s class println
+42 @ to_s: 16 . value println
+
+# async sends
+42 @@ println
+42 @@ upto: 100