@@ -658,6 +658,7 @@ internal Tokenizer(ErrorSink errorSink, PythonCompilerOptions options, bool verb
 
                         return new IncompleteStringErrorToken(Resources.EofInString, incompleteContents);
                     } else if ((eol_size = ReadEolnOpt(ch)) > 0) {
+                        _newLineLocations.Add(CurrentIndex);
 
                         // skip \<eoln> unless followed by EOF:
                         if (Peek() == EOF) {