Ruby: lower severity of parse error to warning

This commit is contained in:
Arthur Baars
2023-03-08 16:37:01 +01:00
parent ebf0bb889b
commit 8096f86224
4 changed files with 9 additions and 5 deletions

View File

@@ -294,7 +294,7 @@ impl<'a> Visitor<'a> {
.diagnostics_writer
.new_entry("parse-error", "Parse error");
&mesg
.severity(diagnostics::Severity::Error)
.severity(diagnostics::Severity::Warning)
.location(self.path, start_line, start_column, end_line, end_column)
.message(message, args);
if status_page {
@@ -405,7 +405,7 @@ impl<'a> Visitor<'a> {
loc,
self.diagnostics_writer
.new_entry("parse-error", "Parse error")
.severity(diagnostics::Severity::Error)
.severity(diagnostics::Severity::Warning)
.location(self.path, start_line, start_column, end_line, end_column)
.message(
"Unknown table type: {}",