fix last eol matching in regex highlighters