private void ReadHamlLine(TextReader reader, HamlFile result) { string currentLine = ReadLine(reader); while (_lineLexer.GetEndOfTagIndex(currentLine) < 0) { if (_eof) { throw new HamlMalformedTagException("Multi-line tag found with no end token.", _sourceFileLineIndex); } currentLine += " " + ReadLine(reader); } result.AddRange(new HamlLineLexer().ParseHamlLine(currentLine, _sourceFileLineIndex - 1)); }