Yan LR: Report all error messages from ANTLR
@@ -44,10 +44,7 @@ void ErrorListener::syntaxError (Recognizer * recognizer __attribute__ ((unused)
std::exception_ptr error __attribute__ ((unused)))
{
using std::to_string;
- if (errorMessage.empty ())
- {
- errorMessage = source + ":" + to_string (line) + ":" + to_string (charPositionInLine) + ": " + message;
- }
+ errorMessage += "\n" + source + ":" + to_string (line) + ":" + to_string (charPositionInLine) + ": " + message;
}
/**
