summaryrefslogtreecommitdiff
path: root/tests/lexers/x10/example.txt
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2021-01-18 21:24:00 +0100
committerGeorg Brandl <georg@python.org>2021-01-18 22:08:36 +0100
commit2a3d3a7d5b9c60dedf6638d876161d9563faebcf (patch)
tree809c0b4a686db98f5954afa1944404cd9652c6b2 /tests/lexers/x10/example.txt
parentf0445be718da83541ea3401aad882f3937147263 (diff)
downloadpygments-git-examplefiles.tar.gz
Move test_examplefiles to new tests/lexers scheme.examplefiles
Diffstat (limited to 'tests/lexers/x10/example.txt')
-rw-r--r--tests/lexers/x10/example.txt94
1 files changed, 94 insertions, 0 deletions
diff --git a/tests/lexers/x10/example.txt b/tests/lexers/x10/example.txt
new file mode 100644
index 00000000..7e258e96
--- /dev/null
+++ b/tests/lexers/x10/example.txt
@@ -0,0 +1,94 @@
+---input---
+/** Example file for the X10 programming langauge (http://x10-lang.org).
+ */
+class Example {
+
+ public static def main(Rail[String]) {
+ Console.OUT.println("Hello World!"); // say hello.
+ }
+
+}
+
+---tokens---
+'/** Example file for the X10 programming langauge (http://x10-lang.org).\n */' Comment.Multiline
+'\n' Text
+
+'class' Keyword
+' ' Text
+'E' Text
+'x' Text
+'a' Text
+'m' Text
+'p' Text
+'l' Text
+'e' Text
+' ' Text
+'{' Text
+'\n' Text
+
+'\n' Text
+
+' ' Text
+'public' Keyword.Declaration
+' ' Text
+'static' Keyword.Declaration
+' ' Text
+'def' Keyword
+' ' Text
+'m' Text
+'a' Text
+'i' Text
+'n' Text
+'(' Text
+'R' Text
+'a' Text
+'i' Text
+'l' Text
+'[' Text
+'S' Text
+'t' Text
+'r' Text
+'i' Text
+'n' Text
+'g' Text
+']' Text
+')' Text
+' ' Text
+'{' Text
+'\n' Text
+
+'\t' Text
+'C' Text
+'o' Text
+'n' Text
+'s' Text
+'o' Text
+'l' Text
+'e' Text
+'.' Text
+'O' Text
+'U' Text
+'T' Text
+'.' Text
+'p' Text
+'r' Text
+'i' Text
+'n' Text
+'t' Text
+'l' Text
+'n' Text
+'(' Text
+'"Hello World!"' Literal.String
+')' Text
+';' Text
+' ' Text
+'// say hello.\n' Comment.Single
+
+' ' Text
+'}' Text
+'\n' Text
+
+'\n' Text
+
+'}' Text
+'\n' Text