Add support to use comments in CMakeList format.

Also add test. Also raise an error when the closing statement is
missing.