DavidKinder / Inform6

The latest version of the Inform 6 compiler, used for generating interactive fiction games.
http://inform-fiction.org/
Other
199 stars 32 forks source link

Fix the long-dict-word plural bug, under LONG_DICT_FLAG_BUG option #261

Closed erkyrath closed 5 months ago

erkyrath commented 5 months ago

Fixes: https://github.com/DavidKinder/Inform6/issues/244

Adds a LONG_DICT_FLAG_BUG compiler option. If $LONG_DICT_FLAG_BUG=0, dict words like 'directions//p' have the plural flag properly set. If $LONG_DICT_FLAG_BUG=1, the flag is ignored (the old buggy behavior).

The default value is 1 for the historic reasons mentioned in the bug report.

I also rearranged the recursively_show_z/g() routines (used in --trace dict) to show all the dict flags independently. Previously it assumed that only nouns are plural, which is usually true but there's no reason to ignore the possibility.