diff options
Diffstat (limited to 'tests/lexers/i6t')
| -rw-r--r-- | tests/lexers/i6t/example.txt | 129 |
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 |
