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/monte | |
| parent | f0445be718da83541ea3401aad882f3937147263 (diff) | |
| download | pygments-git-examplefiles.tar.gz | |
Move test_examplefiles to new tests/lexers scheme.examplefiles
Diffstat (limited to 'tests/lexers/monte')
| -rw-r--r-- | tests/lexers/monte/example.txt | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/tests/lexers/monte/example.txt b/tests/lexers/monte/example.txt new file mode 100644 index 00000000..d7d625b4 --- /dev/null +++ b/tests/lexers/monte/example.txt @@ -0,0 +1,88 @@ +---input--- +exports (main) + +def main(=> currentProcess) :Int as DeepFrozen: + traceln(`Current process: $currentProcess`) + "A \r \n \x00 \u1234" + '\u1234' + return 0 + +---tokens--- +'exports' Keyword +' ' Text.Whitespace +'(' Punctuation +'main' Name +')' Punctuation +'\n' Text + +'\n' Text + +'def' Keyword.Declaration +' ' Text.Whitespace +'main' Name +'(' Punctuation +'=>' Operator +' ' Text.Whitespace +'currentProcess' Name +')' Punctuation +' ' Text.Whitespace +':' Punctuation +'Int' Keyword.Type +' ' Text.Whitespace +'as' Keyword +' ' Text.Whitespace +'DeepFrozen' Keyword.Type +':' Punctuation +'\n' Text + +' ' Text.Whitespace +'traceln' Keyword.Pseudo +'(' Punctuation +'`' Literal.String.Backtick +'C' Literal.String.Backtick +'u' Literal.String.Backtick +'r' Literal.String.Backtick +'r' Literal.String.Backtick +'e' Literal.String.Backtick +'n' Literal.String.Backtick +'t' Literal.String.Backtick +' ' Literal.String.Backtick +'p' Literal.String.Backtick +'r' Literal.String.Backtick +'o' Literal.String.Backtick +'c' Literal.String.Backtick +'e' Literal.String.Backtick +'s' Literal.String.Backtick +'s' Literal.String.Backtick +':' Literal.String.Backtick +' ' Literal.String.Backtick +'$currentProcess' Name +'`' Literal.String.Backtick +')' Punctuation +'\n' Text + +' ' Text.Whitespace +'"' Literal.String.Double +'A' Literal.String.Double +' ' Literal.String.Double +'\\r' Literal.String.Escape +' ' Literal.String.Double +'\\n' Literal.String.Escape +' ' Literal.String.Double +'\\x00' Literal.String.Escape +' ' Literal.String.Double +'\\u1234' Literal.String.Escape +'"' Literal.String.Double +'\n' Text + +' ' Text.Whitespace +"'" Literal.String.Double +'\\u1234' Literal.String.Escape +"'" Literal.String.Char +'\n' Text + +' ' Text.Whitespace +'return' Keyword +' ' Text.Whitespace +'0' Literal.Number.Integer +'\n' Text |
