summaryrefslogtreecommitdiff
path: root/tests/lexers/vim/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/vim/example2.txt
parentf0445be718da83541ea3401aad882f3937147263 (diff)
downloadpygments-git-examplefiles.tar.gz
Move test_examplefiles to new tests/lexers scheme.examplefiles
Diffstat (limited to 'tests/lexers/vim/example2.txt')
-rw-r--r--tests/lexers/vim/example2.txt155
1 files changed, 155 insertions, 0 deletions
diff --git a/tests/lexers/vim/example2.txt b/tests/lexers/vim/example2.txt
new file mode 100644
index 00000000..0430b2cd
--- /dev/null
+++ b/tests/lexers/vim/example2.txt
@@ -0,0 +1,155 @@
+---input---
+" A comment
+
+:py print "py"
+::pyt print 'pyt'
+ pyth print '''pyth'''
+ : pytho print "pytho"
+python print """python"""
+
+ : : python<<E OF
+print """my script"""
+
+def MyFunc(str):
+ """ My Function """
+ print str
+E OF
+
+let py = 42
+echo py
+
+let foo = 42
+echo foo
+
+---tokens---
+'" A comment' Comment
+'\n' Text
+
+'\n' Text
+
+':' Punctuation
+'py' Keyword
+' ' Text
+'print' Name.Builtin
+' ' Text
+'"' Literal.String.Double
+'py' Literal.String.Double
+'"' Literal.String.Double
+'\n' Text
+
+':' Punctuation
+':' Text
+'pyt' Keyword
+' ' Text
+'print' Name.Builtin
+' ' Text
+"'" Literal.String.Single
+'pyt' Literal.String.Single
+"'" Literal.String.Single
+'\n' Text
+
+' ' Text
+'pyth' Keyword
+'\t' Text
+'print' Name.Builtin
+' ' Text
+"'''" Literal.String.Single
+'pyth' Literal.String.Single
+"'''" Literal.String.Single
+'\n' Text
+
+' ' Text
+':' Text
+' ' Text
+'pytho' Keyword
+' ' Text
+'print' Name.Builtin
+' ' Text
+'"' Literal.String.Double
+'pytho' Literal.String.Double
+'"' Literal.String.Double
+'\n' Text
+
+'python' Keyword
+' ' Text
+'print' Name.Builtin
+' ' Text
+'"""' Literal.String.Double
+'python' Literal.String.Double
+'"""' Literal.String.Double
+'\n' Text
+
+'\n' Text
+
+' ' Text
+':' Text
+' ' Text
+':' Text
+' ' Text
+'python' Keyword
+'<<' Operator
+'E OF' Text
+'\n' Text
+
+'print' Name.Builtin
+' ' Text
+'"""' Literal.String.Double
+'my script' Literal.String.Double
+'"""' Literal.String.Double
+'\n' Text
+
+'\n' Text
+
+'def' Keyword
+' ' Text
+'MyFunc' Name.Function
+'(' Punctuation
+'str' Name.Builtin
+')' Punctuation
+':' Punctuation
+'\n' Text
+
+' ' Text
+'""" My Function """' Literal.String.Doc
+'\n' Text
+
+' ' Text
+'print' Name.Builtin
+' ' Text
+'str' Name.Builtin
+'\n' Text
+
+'E OF' Text
+'\n' Text
+
+'\n' Text
+
+'let' Keyword
+' ' Text
+'py' Keyword
+' ' Text
+'=' Punctuation
+' ' Text
+'42' Literal.Number
+'\n' Text
+
+'echo' Text
+' ' Text
+'py' Keyword
+'\n' Text
+
+'\n' Text
+
+'let' Keyword
+' ' Text
+'foo' Text
+' ' Text
+'=' Punctuation
+' ' Text
+'42' Literal.Number
+'\n' Text
+
+'echo' Text
+' ' Text
+'foo' Text
+'\n' Text