diff options
| author | Georg Brandl <georg@python.org> | 2021-01-18 21:24:00 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2021-01-18 22:08:36 +0100 |
| commit | 2a3d3a7d5b9c60dedf6638d876161d9563faebcf (patch) | |
| tree | 809c0b4a686db98f5954afa1944404cd9652c6b2 /tests/lexers/applescript/example2.txt | |
| parent | f0445be718da83541ea3401aad882f3937147263 (diff) | |
| download | pygments-git-examplefiles.tar.gz | |
Move test_examplefiles to new tests/lexers scheme.examplefiles
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 |
