Util: Calculate JSON line number before lexing

This commit is contained in:
Riyyi
2022-06-25 14:05:45 +02:00
parent 68bc95fdf1
commit bc01b34e58
3 changed files with 12 additions and 7 deletions
-3
View File
@@ -113,9 +113,6 @@ void Lexer::analyze()
m_index++;
m_column++;
}
// FIXME: handle case where the file doenst have a trailing newline
m_job->setLineNumbersWidth(std::to_string(m_line - 1).length());
}
// -----------------------------------------