summaryrefslogtreecommitdiffstats
path: root/tests/syntax-tests/highlighted/AppleScript/test.applescript
diff options
context:
space:
mode:
Diffstat (limited to 'tests/syntax-tests/highlighted/AppleScript/test.applescript')
-rw-r--r--tests/syntax-tests/highlighted/AppleScript/test.applescript25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/syntax-tests/highlighted/AppleScript/test.applescript b/tests/syntax-tests/highlighted/AppleScript/test.applescript
new file mode 100644
index 00000000..f3692a84
--- /dev/null
+++ b/tests/syntax-tests/highlighted/AppleScript/test.applescript
@@ -0,0 +1,25 @@
+-- This is a comment
+
+property defaultClientName : "Mary Smith"
+
+on greetClient(nameOfClient)
+ display dialog ("Hello " & nameOfClient & "!")
+end greetClient
+
+
+script testGreet
+ greetClient(defaultClientName)
+end script
+
+run testGreet
+greetClient("Joe Jones")
+
+set myList to {1, "what", 3}
+set beginning of myList to 0
+set end of myList to "four"
+
+myList
+
+tell application "TextEdit"
+ paragraph 1 of document 1
+end tell