mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-14 23:03:04 +00:00
diagnostics: report syntax errors in color
* src/parse-gram.y (parse.error): Set to 'custom'. (yyreport_syntax_error): New. * data/bison-default.css (.expected, .unexpected): New. * tests/diagnostics.at: Adjust.
This commit is contained in:
@@ -477,10 +477,10 @@ static void
|
||||
complains (const location *loc, int *indent, warnings flags,
|
||||
const char *message, va_list args)
|
||||
{
|
||||
severity s = warning_severity (flags);
|
||||
if ((flags & complaint) && complaint_status < status_complaint)
|
||||
complaint_status = status_complaint;
|
||||
|
||||
severity s = warning_severity (flags);
|
||||
if (severity_warning <= s)
|
||||
{
|
||||
if (severity_error <= s && ! complaint_status)
|
||||
|
||||
Reference in New Issue
Block a user