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/gap/example2.txt | |
| parent | f0445be718da83541ea3401aad882f3937147263 (diff) | |
| download | pygments-git-examplefiles.tar.gz | |
Move test_examplefiles to new tests/lexers scheme.examplefiles
Diffstat (limited to 'tests/lexers/gap/example2.txt')
| -rw-r--r-- | tests/lexers/gap/example2.txt | 120 |
1 files changed, 120 insertions, 0 deletions
diff --git a/tests/lexers/gap/example2.txt b/tests/lexers/gap/example2.txt new file mode 100644 index 00000000..87b35675 --- /dev/null +++ b/tests/lexers/gap/example2.txt @@ -0,0 +1,120 @@ +---input--- +############################################################################# +## +#W example.gd +## +## This file contains a sample of a GAP declaration file. +## +DeclareProperty( "SomeProperty", IsLeftModule ); +DeclareGlobalFunction( "SomeGlobalFunction" ); + + +############################################################################# +## +#C IsQuuxFrobnicator(<R>) +## +## <ManSection> +## <Filt Name="IsQuuxFrobnicator" Arg='R' Type='Category'/> +## +## <Description> +## Tests whether R is a quux frobnicator. +## </Description> +## </ManSection> +## +DeclareSynonym( "IsQuuxFrobnicator", IsField and IsGroup ); + +---tokens--- +'#############################################################################' Comment.Single +'\n' Text + +'##' Comment.Single +'\n' Text + +'#W example.gd' Comment.Single +'\n' Text + +'##' Comment.Single +'\n' Text + +'## This file contains a sample of a GAP declaration file.' Comment.Single +'\n' Text + +'##' Comment.Single +'\n' Text + +'DeclareProperty' Name.Builtin +'(' Punctuation +' ' Text +'"SomeProperty"' Literal.String +',' Operator +' ' Text +'IsLeftModule' Name.Variable +' ' Text +')' Punctuation +';' Operator +'\n' Text + +'DeclareGlobalFunction' Name.Builtin +'(' Punctuation +' ' Text +'"SomeGlobalFunction"' Literal.String +' ' Text +')' Punctuation +';' Operator +'\n' Text + +'\n' Text + +'\n' Text + +'#############################################################################' Comment.Single +'\n' Text + +'##' Comment.Single +'\n' Text + +'#C IsQuuxFrobnicator(<R>)' Comment.Single +'\n' Text + +'##' Comment.Single +'\n' Text + +'## <ManSection>' Comment.Single +'\n' Text + +'## <Filt Name="IsQuuxFrobnicator" Arg=\'R\' Type=\'Category\'/>' Comment.Single +'\n' Text + +'##' Comment.Single +'\n' Text + +'## <Description>' Comment.Single +'\n' Text + +'## Tests whether R is a quux frobnicator.' Comment.Single +'\n' Text + +'## </Description>' Comment.Single +'\n' Text + +'## </ManSection>' Comment.Single +'\n' Text + +'##' Comment.Single +'\n' Text + +'DeclareSynonym' Name.Builtin +'(' Punctuation +' ' Text +'"IsQuuxFrobnicator"' Literal.String +',' Operator +' ' Text +'IsField' Name.Variable +' ' Text +'and' Operator.Word +' ' Text +'IsGroup' Name.Variable +' ' Text +')' Punctuation +';' Operator +'\n' Text |
