Support shell-style comments.

Fixes #5994