Is this sufficient? As a user I would generally assume the comment character makes the rest of a line a comment, but everything before it valid code/config.