From 7317079945659c27115a17e8dd6ab3798181c7ba Mon Sep 17 00:00:00 2001 From: Felipe Zimmerle Date: Thu, 23 Jun 2016 16:02:09 -0300 Subject: [PATCH] parser: Reporting the right column position in case of error --- src/parser/driver.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser/driver.cc b/src/parser/driver.cc index 4a6bb273..d2af5c2f 100644 --- a/src/parser/driver.cc +++ b/src/parser/driver.cc @@ -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) {