summaryrefslogtreecommitdiffstats
path: root/tests/syntax-tests/highlighted/AppleScript/test.applescript
diff options
context:
space:
mode:
authorhenil <dedaniahenil@gmail.com>2020-11-15 00:22:08 +0530
committerDavid Peter <sharkdp@users.noreply.github.com>2020-11-23 15:43:58 +0100
commit591eba66a3af1c211a09eefd17cbeb819b0a131f (patch)
treecf0b604f97314d567745498c85be1aec36e85f25 /tests/syntax-tests/highlighted/AppleScript/test.applescript
parenta5a9ac83e5a506ac2bdc673476aca54c818eabe2 (diff)
add new syntax test filesv0.17.0
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