flycheck-mercury provides a syntax checker for the Mercury language. See https://github.com/flycheck/flycheck-mercury and http://mercurylang.org/.