summaryrefslogtreecommitdiff
path: root/tests/examplefiles/example.praat
diff options
context:
space:
mode:
authorJJ Atria <jjatria@gmail.com>2015-08-25 10:04:28 +0100
committerJJ Atria <jjatria@gmail.com>2015-08-25 10:04:28 +0100
commite43b329f15015a45366abc01e73fd5616a2b0c84 (patch)
tree1cfbb21dcd6363e91386f79cdcae0668fedca6e9 /tests/examplefiles/example.praat
parent5ed72f7fc4d634242bb792a2435195ef27ddfaa6 (diff)
downloadpygments-e43b329f15015a45366abc01e73fd5616a2b0c84.tar.gz
Praat: Comma list exits even with trailing spaces. Added pseudo-switch block to
example
Diffstat (limited to 'tests/examplefiles/example.praat')
-rw-r--r--tests/examplefiles/example.praat9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/examplefiles/example.praat b/tests/examplefiles/example.praat
index ca5d99b0..84ae5828 100644
--- a/tests/examplefiles/example.praat
+++ b/tests/examplefiles/example.praat
@@ -122,7 +122,8 @@ for i from 1 to n
...f0 f1 f2 f3 " +
..."duration response"
- removeObject: pitch, table
+ removeObject: pitch, table
+ # comment
# Picture window commands
selectObject: sound
@@ -145,6 +146,12 @@ for i from 1 to n
demo Text: 50, "centre", 50, "half", "Finished"
endfor
+switch$ = if switch == 1 then "a" else
+ ... if switch == 2 then "b" else
+ ... if switch == 3 then "c" else
+ ... if switch == 4 then "d" else
+ ... "default" fi fi fi fi
+
# An old-style sendpraat block
# All these lines should be a string!
sendpraat Praat