Add support in syntax.py for reverse lookups.