summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAnteru <bitbucket@ca.sh13.net>2019-04-30 15:54:19 +0000
committerAnteru <bitbucket@ca.sh13.net>2019-04-30 15:54:19 +0000
commite6df08fd71bc4164abb7ef91801cc6c22dc8fd58 (patch)
tree234b7794feaadf6af22707deabb0a5e39895ca83 /tests
parent28a21bdafa1b73d5515de18bd263797af61c2471 (diff)
parent40a9f83df9f406ec2c89d6687b59df5df104842a (diff)
downloadpygments-e6df08fd71bc4164abb7ef91801cc6c22dc8fd58.tar.gz
Merged in kurtmckee/pygments-main/support-tera-term (pull request #749)
Support Tera Term macro language
Diffstat (limited to 'tests')
-rw-r--r--tests/examplefiles/teraterm.ttl34
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/examplefiles/teraterm.ttl b/tests/examplefiles/teraterm.ttl
new file mode 100644
index 00000000..f6a3648a
--- /dev/null
+++ b/tests/examplefiles/teraterm.ttl
@@ -0,0 +1,34 @@
+messagebox "text \\not escaped \nescaped n" "other\n\rthing"
+messagebox "goto label /* a string */ ; same string"
+a=10
+b= 'abc'#$41'def'
+c =#65 /* multiline comment * / * / *//*
+comment */ d = 10 ; inline comment /* still inline */
+e = d + 20 - (($a * 2) / 4) << 3 % (2 >> 1) + result
+
+
+:thing
+
+strcompare c "thing"
+if result = 1 then
+ goto label_
+elseif result > -1 then
+ goto 10
+elseif d > (1+2*3)/7 then
+ messagebox "thing"
+else
+ messagebox "done"
+endif
+
+if abc messagebox "thing1" "title"
+
+
+; Invalid syntax
+bad = "no closing double quote
+bad = 'no closing single quote
+garbage
+...
+...
+...
+
+endgarbage