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/c/example.txt | |
| parent | f0445be718da83541ea3401aad882f3937147263 (diff) | |
| download | pygments-git-examplefiles.tar.gz | |
Move test_examplefiles to new tests/lexers scheme.examplefiles
Diffstat (limited to 'tests/lexers/c/example.txt')
| -rw-r--r-- | tests/lexers/c/example.txt | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/tests/lexers/c/example.txt b/tests/lexers/c/example.txt new file mode 100644 index 00000000..b579a5ed --- /dev/null +++ b/tests/lexers/c/example.txt @@ -0,0 +1,99 @@ +---input--- +/* + * Some Number Test + */ + +int i = 24241424; +float f1 = 342423423.24234; +float f2 = 25235235.; +float f3 = .234234; +float f4 = 234243e+34343; +float f5 = 24234e-234; +int o = 0234; +int h = 0x2342; + +---tokens--- +'/*\n * Some Number Test\n */' Comment.Multiline +'\n' Text + +'\n' Text + +'int' Keyword.Type +' ' Text +'i' Name +' ' Text +'=' Operator +' ' Text +'24241424' Literal.Number.Integer +';' Punctuation +'\n' Text + +'float' Keyword.Type +' ' Text +'f1' Name +' ' Text +'=' Operator +' ' Text +'342423423.24234' Literal.Number.Float +';' Punctuation +'\n' Text + +'float' Keyword.Type +' ' Text +'f2' Name +' ' Text +'=' Operator +' ' Text +'25235235.' Literal.Number.Float +';' Punctuation +'\n' Text + +'float' Keyword.Type +' ' Text +'f3' Name +' ' Text +'=' Operator +' ' Text +'.234234' Literal.Number.Float +';' Punctuation +'\n' Text + +'float' Keyword.Type +' ' Text +'f4' Name +' ' Text +'=' Operator +' ' Text +'234243e+34343' Literal.Number.Float +';' Punctuation +'\n' Text + +'float' Keyword.Type +' ' Text +'f5' Name +' ' Text +'=' Operator +' ' Text +'24234e-234' Literal.Number.Float +';' Punctuation +'\n' Text + +'int' Keyword.Type +' ' Text +'o' Name +' ' Text +'=' Operator +' ' Text +'0234' Literal.Number.Oct +';' Punctuation +'\n' Text + +'int' Keyword.Type +' ' Text +'h' Name +' ' Text +'=' Operator +' ' Text +'0x2342' Literal.Number.Hex +';' Punctuation +'\n' Text |
