Fix bug where category and context was reversed.

In InputParser, Context was recognised as @ and Category was recognised
as #. It should be the reversed.

This commit fixes it.