Added a more suitable grammar for Mercury
Merge pull request #1877 from sebgod/change-mercury-grammar

Added a more suitable grammar for Mercury