diff options
Diffstat (limited to 'tests/lexers/applescript/example2.txt')
| -rw-r--r-- | tests/lexers/applescript/example2.txt | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/tests/lexers/applescript/example2.txt b/tests/lexers/applescript/example2.txt new file mode 100644 index 00000000..5e94ba61 --- /dev/null +++ b/tests/lexers/applescript/example2.txt @@ -0,0 +1,84 @@ +---input--- +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 + +---tokens--- +'tell' Keyword +' ' Text +'application' Name.Builtin +' ' Text +'"System Events"' Literal.String.Double +'\n ' Text +'tell' Keyword +' ' Text +'network' Name.Variable +' ' Text +'preferences' Name.Variable +'\n ' Text +'tell' Keyword +' ' Text +'current' Name.Variable +' ' Text +'location' Name.Attribute +'\n ' Text +'set' Keyword +' ' Text +'aPPPoEService' Name.Variable +' ' Text +'to' Keyword +' ' Text +'a' Name.Variable +' ' Text +'reference to' Operator.Word +' ' Text +'(' Punctuation +'first' Name.Builtin +' ' Text +'service' Name.Variable +' ' Text +'whose' Name.Builtin +' ' Text +'kind' Name.Variable +' ' Text +'is' Operator.Word +' ' Text +'10' Literal.Number.Integer +')' Punctuation +'\n ' Text +'if' Keyword +' ' Text +'exists' Name.Builtin +' ' Text +'aPPPoEService' Name.Variable +' ' Text +'then' Keyword +'\n ' Text +'connect' Name.Variable +' ' Text +'aPPPoEService' Name.Variable +'\n ' Text +'end' Keyword +' ' Text +'if' Keyword +'\n ' Text +'end' Keyword +' ' Text +'tell' Keyword +'\n ' Text +'end' Keyword +' ' Text +'tell' Keyword +'\n' Text + +'end' Keyword +' ' Text +'tell' Keyword +'\n' Text |
