Respecting line endings in AnnotationScanner

The annotation scanner only checked for line feeds ("\n"), carriage returns were not respected causing problems on files that were contained Mac or Windows line endings ("\r" or "\r\n").
Could be simplified: ```(?:\n|\r\n?)```