diff options
author | David Corbett <corbett.dav@husky.neu.edu> | 2014-03-16 15:31:46 -0400 |
---|---|---|
committer | David Corbett <corbett.dav@husky.neu.edu> | 2014-03-16 15:31:46 -0400 |
commit | 8f8ed8cf3e577fb07cd95c66a65b1aac1fa285d2 (patch) | |
tree | 45515a78f9503190048963c60d52f2f1c48fae00 /tests/examplefiles/example.inf | |
parent | 37f118ebedd03947ba5b04dcd9ba21269cfa3a88 (diff) | |
download | pygments-8f8ed8cf3e577fb07cd95c66a65b1aac1fa285d2.tar.gz |
Update and fix the Inform 6 lexer
Diffstat (limited to 'tests/examplefiles/example.inf')
-rw-r--r-- | tests/examplefiles/example.inf | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/tests/examplefiles/example.inf b/tests/examplefiles/example.inf index bc163de9..73cdd087 100644 --- a/tests/examplefiles/example.inf +++ b/tests/examplefiles/example.inf @@ -8,8 +8,8 @@ Switches d2SDq; Constant Story "Informal Testing"; Constant Headline "^Not a game.^";!% This is a comment, not ICL. -Release 1; -Serial "140128"; +Release 2; +Serial "140308"; Version 5; Ifndef TARGET_ZCODE; @@ -58,6 +58,7 @@ Array table buffer 260; Attribute reversed; Attribute opaque alias locked; +Constant to reversed; Property long additive additive long alias; Property long long long wingspan alias alias; @@ -271,7 +272,7 @@ Extend only 'feel' 'touch' replace * noun -> Feel; 1, 9: box "Testing oneself is best when done alone." " -- Jimmy Carter"; - 2, 6, 3 to 5: + 2, 6, to, 3 to 5, to to to: <Take pigeon>; #Ifdef VN_1633; <Jump, person>; @@ -357,13 +358,16 @@ Extend only 'feel' 'touch' replace * noun -> Feel; [ FeelSub; print_ret (The) noun, " feels normal."; ]; -Global to; -[ ReverseSub; - to = parent(noun); +[ ReverseSub from; + from = parent(noun); move noun to parent(second); - move second to to; - give noun reversed; - give second reversed; + if (from == to) + move second to to; + else + move second to from; + give noun to; + from = to; + give second from; "You swap ", (the) noun, " and ", (the) second, "."; ]; |