mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-21 00:25:44 +00:00
Fix Abstract Parser not being able to display parsing errors from defines proxy on empty line
This commit is contained in:
parent
0ffa85d557
commit
ba3084700e
@ -80,7 +80,7 @@ public:
|
|||||||
const auto pos = e.Position();
|
const auto pos = e.Position();
|
||||||
const auto line = m_lexer->GetLineForPos(pos);
|
const auto line = m_lexer->GetLineForPos(pos);
|
||||||
|
|
||||||
if (!line.IsEof())
|
if (!line.IsEof() && line.m_line.size() > static_cast<unsigned>(pos.m_column - 1))
|
||||||
{
|
{
|
||||||
std::cout << "Error: " << e.FullMessage() << "\n" << line.m_line.substr(pos.m_column - 1) << std::endl;
|
std::cout << "Error: " << e.FullMessage() << "\n" << line.m_line.substr(pos.m_column - 1) << std::endl;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user