Add reason for skipping syntax tests

This might help debug issues like the failing Travis build in PR #7895.
Merge pull request #7900 from claui/syntax-test-add-hint

In syntax tests, amend `skip` directives to carry the reason for skipping