summaryrefslogtreecommitdiff
path: root/tests/lexers/thrift
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/thrift
parentf0445be718da83541ea3401aad882f3937147263 (diff)
downloadpygments-git-examplefiles.tar.gz
Move test_examplefiles to new tests/lexers scheme.examplefiles
Diffstat (limited to 'tests/lexers/thrift')
-rw-r--r--tests/lexers/thrift/example.txt88
1 files changed, 88 insertions, 0 deletions
diff --git a/tests/lexers/thrift/example.txt b/tests/lexers/thrift/example.txt
new file mode 100644
index 00000000..b6856aa3
--- /dev/null
+++ b/tests/lexers/thrift/example.txt
@@ -0,0 +1,88 @@
+---input---
+/* comment */
+/** doc comment */
+
+namespace cpp shared // inline comment
+
+struct Foo1 {
+ 1: i32 key
+ 2: string value
+}
+
+service Foo2 {
+ Foo1 bar(1: i32 key)
+}
+
+
+---tokens---
+'/* comment */' Comment.Multiline
+'\n' Text.Whitespace
+
+'/** doc comment */' Comment.Multiline
+'\n' Text.Whitespace
+
+'\n' Text.Whitespace
+
+'namespace' Keyword.Namespace
+' ' Text.Whitespace
+'cpp' Name.Namespace
+' ' Text.Whitespace
+'shared' Name
+' ' Text.Whitespace
+'// inline comment\n' Comment
+
+'\n' Text.Whitespace
+
+'struct' Keyword.Declaration
+' ' Text.Whitespace
+'Foo1' Name.Class
+' ' Text.Whitespace
+'{' Punctuation
+'\n' Text.Whitespace
+
+' ' Text.Whitespace
+'1' Literal.Number.Integer
+':' Punctuation
+' ' Text.Whitespace
+'i32' Keyword.Type
+' ' Text.Whitespace
+'key' Name
+'\n' Text.Whitespace
+
+' ' Text.Whitespace
+'2' Literal.Number.Integer
+':' Punctuation
+' ' Text.Whitespace
+'string' Keyword.Type
+' ' Text.Whitespace
+'value' Name
+'\n' Text.Whitespace
+
+'}' Punctuation
+'\n' Text.Whitespace
+
+'\n' Text.Whitespace
+
+'service' Keyword.Declaration
+' ' Text.Whitespace
+'Foo2' Name.Class
+' ' Text.Whitespace
+'{' Punctuation
+'\n' Text.Whitespace
+
+' ' Text.Whitespace
+'Foo1' Name
+' ' Text.Whitespace
+'bar' Name.Function
+'(' Operator
+'1' Literal.Number.Integer
+':' Punctuation
+' ' Text.Whitespace
+'i32' Keyword.Type
+' ' Text.Whitespace
+'key' Name
+')' Punctuation
+'\n' Text.Whitespace
+
+'}' Punctuation
+'\n' Text.Whitespace