diff options
| author | Georg Brandl <georg@python.org> | 2021-01-18 21:24:00 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2021-01-18 22:08:36 +0100 |
| commit | 2a3d3a7d5b9c60dedf6638d876161d9563faebcf (patch) | |
| tree | 809c0b4a686db98f5954afa1944404cd9652c6b2 /tests/lexers/thrift | |
| parent | f0445be718da83541ea3401aad882f3937147263 (diff) | |
| download | pygments-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.txt | 88 |
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 |
