Might be good to explain why we need to check both (i.e. line comment delimiter may be a substring of block comment delimiter).