summaryrefslogtreecommitdiff
path: root/tests/lexers/prolog/example2.txt
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/prolog/example2.txt
parentf0445be718da83541ea3401aad882f3937147263 (diff)
downloadpygments-git-examplefiles.tar.gz
Move test_examplefiles to new tests/lexers scheme.examplefiles
Diffstat (limited to 'tests/lexers/prolog/example2.txt')
-rw-r--r--tests/lexers/prolog/example2.txt164
1 files changed, 164 insertions, 0 deletions
diff --git a/tests/lexers/prolog/example2.txt b/tests/lexers/prolog/example2.txt
new file mode 100644
index 00000000..4e5b88af
--- /dev/null
+++ b/tests/lexers/prolog/example2.txt
@@ -0,0 +1,164 @@
+---input---
+/* Comments /* can nest */
+still a comment
+*/
+
+:- module(maplist, maplist/3)
+
+assert(world:done). % asserts
+
+sibling(X, Y) :- parent_child(Z, X), parent_child(Z, Y).
+
+parent_child(X, Y) :- father_child(X, Y).
+parent_child(X, Y) :- mother_child(X, Y).
+
+mother_child(trude, sally).
+
+father_child(tom, sally).
+father_child(tom, erica).
+father_child(mike, tom).
+
+
+---tokens---
+'/*' Comment.Multiline
+' Comments ' Comment.Multiline
+'/*' Comment.Multiline
+' can nest ' Comment.Multiline
+'*/' Comment.Multiline
+'\nstill a comment\n' Comment.Multiline
+
+'*/' Comment.Multiline
+'\n\n' Text
+
+':-' Punctuation
+' ' Text
+'module' Name.Function
+'(' Punctuation
+'maplist' Literal.String.Atom
+',' Punctuation
+' ' Text
+'maplist' Literal.String.Atom
+'/' Operator
+'3' Literal.Number.Integer
+')' Punctuation
+'\n\n' Text
+
+'assert' Name.Function
+'(' Punctuation
+'world' Name.Namespace
+':' Punctuation
+'done' Literal.String.Atom
+')' Punctuation
+'.' Punctuation
+' ' Text
+'% asserts' Comment.Single
+'\n\n' Text
+
+'sibling' Name.Function
+'(' Punctuation
+'X' Name.Variable
+',' Punctuation
+' ' Text
+'Y' Name.Variable
+')' Punctuation
+' ' Text
+':-' Punctuation
+' ' Text
+'parent_child' Name.Function
+'(' Punctuation
+'Z' Name.Variable
+',' Punctuation
+' ' Text
+'X' Name.Variable
+')' Punctuation
+',' Punctuation
+' ' Text
+'parent_child' Name.Function
+'(' Punctuation
+'Z' Name.Variable
+',' Punctuation
+' ' Text
+'Y' Name.Variable
+')' Punctuation
+'.' Punctuation
+'\n\n' Text
+
+'parent_child' Name.Function
+'(' Punctuation
+'X' Name.Variable
+',' Punctuation
+' ' Text
+'Y' Name.Variable
+')' Punctuation
+' ' Text
+':-' Punctuation
+' ' Text
+'father_child' Name.Function
+'(' Punctuation
+'X' Name.Variable
+',' Punctuation
+' ' Text
+'Y' Name.Variable
+')' Punctuation
+'.' Punctuation
+'\n' Text
+
+'parent_child' Name.Function
+'(' Punctuation
+'X' Name.Variable
+',' Punctuation
+' ' Text
+'Y' Name.Variable
+')' Punctuation
+' ' Text
+':-' Punctuation
+' ' Text
+'mother_child' Name.Function
+'(' Punctuation
+'X' Name.Variable
+',' Punctuation
+' ' Text
+'Y' Name.Variable
+')' Punctuation
+'.' Punctuation
+'\n\n' Text
+
+'mother_child' Name.Function
+'(' Punctuation
+'trude' Literal.String.Atom
+',' Punctuation
+' ' Text
+'sally' Literal.String.Atom
+')' Punctuation
+'.' Punctuation
+'\n\n' Text
+
+'father_child' Name.Function
+'(' Punctuation
+'tom' Literal.String.Atom
+',' Punctuation
+' ' Text
+'sally' Literal.String.Atom
+')' Punctuation
+'.' Punctuation
+'\n' Text
+
+'father_child' Name.Function
+'(' Punctuation
+'tom' Literal.String.Atom
+',' Punctuation
+' ' Text
+'erica' Literal.String.Atom
+')' Punctuation
+'.' Punctuation
+'\n' Text
+
+'father_child' Name.Function
+'(' Punctuation
+'mike' Literal.String.Atom
+',' Punctuation
+' ' Text
+'tom' Literal.String.Atom
+')' Punctuation
+'.' Punctuation
+'\n' Text