diff options
author | Georg Brandl <georg@python.org> | 2011-06-18 12:19:00 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2011-06-18 12:19:00 +0200 |
commit | 0bf6072b0e75fa4b6afab5d23477d7aa4aa1c77c (patch) | |
tree | d6caebdc7594e16e1661af00f70e9c2eb4534619 /tests | |
parent | 37b7bbe5fce3e868ce243d188f7c9eb8a8e3d52a (diff) | |
download | pygments-0bf6072b0e75fa4b6afab5d23477d7aa4aa1c77c.tar.gz |
Port Fancy lexer changes from https://github.com/fancy-lang/fancy-pygments.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/examplefiles/example_file.fy | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/examplefiles/example_file.fy b/tests/examplefiles/example_file.fy index 12b3d969..43e80c1d 100644 --- a/tests/examplefiles/example_file.fy +++ b/tests/examplefiles/example_file.fy @@ -110,3 +110,19 @@ pm match_with_extract: "Hello : World!" [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 |