parser: Reporting the right column position in case of error

This commit is contained in:
Felipe Zimmerle 2016-06-23 16:02:09 -03:00
parent 37c18326c6
commit 7317079945
No known key found for this signature in database
GPG Key ID: E6DFB08CE8B11277

View File

@ -172,7 +172,7 @@ void Driver::error(const yy::location& l, const std::string& m,
parserError << "File: " << ref.back() << ". ";
}
parserError << "Line: " << l.end.line << ". ";
parserError << "Column: " << l.end.column << ". ";
parserError << "Column: " << l.end.column - 1 << ". ";
}
if (m.empty() == false) {