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