summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorthatch <devnull@localhost>2008-09-24 20:50:21 -0700
committerthatch <devnull@localhost>2008-09-24 20:50:21 -0700
commit09b1546f75c77abe09e508747f9aaecc4f56655a (patch)
treeb3ea45d0692f12752623723ecb6fb98bb2eeb2c5 /tests
parentea6e916e561428274df541ecfa9859c888d2442a (diff)
downloadpygments-09b1546f75c77abe09e508747f9aaecc4f56655a.tar.gz
Add modified AppleScript lexer, to close #330
Diffstat (limited to 'tests')
-rw-r--r--tests/examplefiles/pppoe.applescript10
-rw-r--r--tests/examplefiles/unicode.applescript5
2 files changed, 15 insertions, 0 deletions
diff --git a/tests/examplefiles/pppoe.applescript b/tests/examplefiles/pppoe.applescript
new file mode 100644
index 00000000..4cb380e5
--- /dev/null
+++ b/tests/examplefiles/pppoe.applescript
@@ -0,0 +1,10 @@
+tell application "System Events"
+ tell network preferences
+ tell current location
+ set aPPPoEService to a reference to (first service whose kind is 10)
+ if exists aPPPoEService then
+ connect aPPPoEService
+ end if
+ end tell
+ end tell
+end tell
diff --git a/tests/examplefiles/unicode.applescript b/tests/examplefiles/unicode.applescript
new file mode 100644
index 00000000..8cc6c6fb
--- /dev/null
+++ b/tests/examplefiles/unicode.applescript
@@ -0,0 +1,5 @@
+set jp to "日本語"
+
+set ru to "Русский"
+
+jp & " and " & ru -- returns "日本語 and Русский"