fix end regex for single-line comment