summaryrefslogtreecommitdiff
path: root/tests/lexers/i6t
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/i6t
parentf0445be718da83541ea3401aad882f3937147263 (diff)
downloadpygments-git-examplefiles.tar.gz
Move test_examplefiles to new tests/lexers scheme.examplefiles
Diffstat (limited to 'tests/lexers/i6t')
-rw-r--r--tests/lexers/i6t/example.txt129
1 files changed, 129 insertions, 0 deletions
diff --git a/tests/lexers/i6t/example.txt b/tests/lexers/i6t/example.txt
new file mode 100644
index 00000000..37064f2b
--- /dev/null
+++ b/tests/lexers/i6t/example.txt
@@ -0,0 +1,129 @@
+---input---
+B/examt: Example Template.
+
+@Purpose: To show the syntax of I6T, specifically the parts relating to the
+inclusion of I7 and at signs in the first column.
+
+@-------------------------------------------------------------------------------
+
+@p Lines.
+
+@c
+{-lines:type}
+! This is a comment.
+{-endlines}
+
+@-This line begins with @-, so it is ignored.
+
+@p Paragraph.
+This is a paragraph.
+@p Another paragraph.
+So
+
+is
+
+this.
+
+@Purpose: This purpose line is ignored.
+
+@c At signs and (+ +).
+[ Foo i;
+print (+score [an I7 value]+), "^";
+@add sp 1 -> i; ! Assembly works even in the first column.
+];
+
+---tokens---
+'B/examt: Example Template.' Comment.Preproc
+'\n\n' Comment.Preproc
+
+'@Purpose:' Comment.Preproc
+' To show the syntax of I6T, specifically the parts relating to the\ninclusion of I7 and at signs in the first column.\n\n' Comment.Preproc
+
+'@-' Comment.Preproc
+'------------------------------------------------------------------------------\n\n' Comment.Preproc
+
+'@p Lines.\n' Generic.Heading
+
+'\n' Comment.Preproc
+
+'@c\n' Comment.Preproc
+
+'{-' Punctuation
+'lines' Keyword
+':' Punctuation
+'type' Text
+'}' Punctuation
+'\n' Text
+
+'! This is a comment.' Comment.Single
+'\n' Text
+
+'{' Punctuation
+'-endlines' Keyword
+'}' Punctuation
+'\n\n' Text
+
+'@-This line begins with @-, so it is ignored.' Comment.Preproc
+'\n\n' Text
+
+'@p Paragraph.\n' Generic.Heading
+
+'This is a paragraph.\n' Comment.Preproc
+
+'@p Another paragraph.\n' Generic.Heading
+
+'So\n\nis\n\nthis.\n\n' Comment.Preproc
+
+'@Purpose:' Comment.Preproc
+' This purpose line is ignored.\n\n' Comment.Preproc
+
+'@c At signs and (+ +).\n' Comment.Preproc
+
+'[' Punctuation
+' ' Text
+'Foo' Name.Function
+' ' Text
+'i' Name.Variable
+';' Punctuation
+'\n' Text
+
+'print' Keyword
+' ' Text
+'(+' Punctuation
+'score ' Text
+'[' Comment.Multiline
+'an I7 value' Comment.Multiline
+']' Comment.Multiline
+'+)' Punctuation
+',' Punctuation
+' ' Text
+'' Text
+'"' Literal.String.Double
+'^' Literal.String.Escape
+'"' Literal.String.Double
+';' Punctuation
+'\n' Text
+
+'@' Keyword
+'add' Keyword
+' ' Text
+'' Text
+'sp' Keyword.Pseudo
+' ' Text
+'' Text
+'1' Literal.Number.Integer
+' ' Text
+'->' Punctuation
+' ' Text
+'' Text
+'i' Name
+';' Punctuation
+' ' Text
+'! Assembly works even in the first column.' Comment.Single
+'\n' Text
+
+']' Punctuation
+'' Punctuation
+';' Punctuation
+'' Comment.Preproc
+'\n' Comment.Preproc