summaryrefslogtreecommitdiff
path: root/tests/lexers/roboconf-instances
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/roboconf-instances
parentf0445be718da83541ea3401aad882f3937147263 (diff)
downloadpygments-git-examplefiles.tar.gz
Move test_examplefiles to new tests/lexers scheme.examplefiles
Diffstat (limited to 'tests/lexers/roboconf-instances')
-rw-r--r--tests/lexers/roboconf-instances/example.txt175
1 files changed, 175 insertions, 0 deletions
diff --git a/tests/lexers/roboconf-instances/example.txt b/tests/lexers/roboconf-instances/example.txt
new file mode 100644
index 00000000..a70ee367
--- /dev/null
+++ b/tests/lexers/roboconf-instances/example.txt
@@ -0,0 +1,175 @@
+---input---
+
+# Deal with imports
+import others.instances;
+
+instance of VM {
+ name: VM-mysql;
+ instance of mysql {
+ name: MySQL;
+ }
+}
+
+instance of VM {
+ name: VM ;
+ count: 5;
+
+ INSTANCE of tomcat {
+ name: Tomcat;
+
+ instance of my-war-1 {
+ name: my-war-1;
+ full-path: apps/my-war;
+ }
+ }
+}
+
+---tokens---
+'# Deal with imports\n' Comment
+
+'import ' Keyword
+'o' Text
+'t' Text
+'h' Text
+'e' Text
+'r' Text
+'s' Text
+'.' Text
+'i' Text
+'n' Text
+'s' Text
+'t' Text
+'a' Text
+'n' Text
+'c' Text
+'e' Text
+'s' Text
+';' Text
+'\n\n' Text
+
+'instance of ' Keyword
+'V' Text
+'M' Text
+' ' Text
+'{' Text
+'\n\t' Text
+'name:' Name
+' ' Text
+'V' Text
+'M' Text
+'-' Text
+'m' Text
+'y' Text
+'s' Text
+'q' Text
+'l' Text
+';' Text
+'\n\t' Text
+'instance of ' Keyword
+'m' Text
+'y' Text
+'s' Text
+'q' Text
+'l' Text
+' ' Text
+'{' Text
+'\n\t\t' Text
+'name:' Name
+' ' Text
+'M' Text
+'y' Text
+'S' Text
+'Q' Text
+'L' Text
+';' Text
+'\n\t' Text
+'}' Text
+'\n' Text
+
+'}' Text
+'\n\n' Text
+
+'instance of ' Keyword
+'V' Text
+'M' Text
+' ' Text
+'{' Text
+'\n\t' Text
+'name:' Name
+' ' Text
+'V' Text
+'M' Text
+' ' Text
+';' Text
+'\n\t' Text
+'count:' Name
+' ' Text
+'5' Text
+';' Text
+'\n\t\n\t' Text
+'INSTANCE of ' Keyword
+'t' Text
+'o' Text
+'m' Text
+'c' Text
+'a' Text
+'t' Text
+' ' Text
+'{' Text
+'\n\t\t' Text
+'name:' Name
+' ' Text
+'T' Text
+'o' Text
+'m' Text
+'c' Text
+'a' Text
+'t' Text
+';' Text
+'\n\t\t\n\t\t' Text
+'instance of ' Keyword
+'m' Text
+'y' Text
+'-' Text
+'w' Text
+'a' Text
+'r' Text
+'-' Text
+'1' Text
+' ' Text
+'{' Text
+'\n\t\t\t' Text
+'name:' Name
+' ' Text
+'m' Text
+'y' Text
+'-' Text
+'w' Text
+'a' Text
+'r' Text
+'-' Text
+'1' Text
+';' Text
+'\n\t\t\t' Text
+'full-path:' Name
+' ' Text
+'a' Text
+'p' Text
+'p' Text
+'s' Text
+'/' Text
+'m' Text
+'y' Text
+'-' Text
+'w' Text
+'a' Text
+'r' Text
+';' Text
+'\n\t\t' Text
+'}' Text
+'\n\t' Text
+'}' Text
+'\n' Text
+
+'}' Text
+'\n' Text