detects and parses single and multiple line comments