Cope with YAML idiosyncracy at unquoted "YES".

This commit is contained in:
Eric S. Raymond 2017-08-03 10:49:22 -04:00
parent 812d0194bb
commit 1966264715
2 changed files with 2 additions and 2 deletions

View file

@ -3997,7 +3997,7 @@ actions: !!omap
message: 'Wizards are not to be disturbed by such as you.' message: 'Wizards are not to be disturbed by such as you.'
words: ['wizar'] words: ['wizar']
noaction: true noaction: true
- YES: - "YES":
message: 'Guess again.' message: 'Guess again.'
words: ['yes'] words: ['yes']
noaction: true noaction: true

View file

@ -317,7 +317,7 @@ def buildtravel(locs, objs):
# THIS CODE IS WAAAY MORE COMPLEX THAN IT NEEDS TO BE. It's the # THIS CODE IS WAAAY MORE COMPLEX THAN IT NEEDS TO BE. It's the
# result of a massive refactoring exercise that concentrated all # result of a massive refactoring exercise that concentrated all
# the old nastiness in one spot. It hasn't been finally simplified # the old nastiness in one spot. It hasn't been finally simplified
# because there's no need to do it until one of the asserions # because there's no need to do it until one of the assertions
# fails. Hint: if you try cleaning this up, the acceptance test is # fails. Hint: if you try cleaning this up, the acceptance test is
# simple - the output dungeon.c must not change. # simple - the output dungeon.c must not change.
# #