parser: improve error message for missing semicolon in inherit

Before:
  error: syntax error, expecting ';'

After:
  error: syntax error, expecting ';' to end 'inherit' bindings


Change-Id: I47c633cb5c696b646840c58e03270a7d6a6a6964
This commit is contained in:
Qyriad
2025-11-22 16:48:53 +01:00
parent b3e24cb3e5
commit be18b7dc25
4 changed files with 24 additions and 1 deletions
+1
View File
@@ -56,6 +56,7 @@ error_message_for(grammar::v1::expr::select) = "expecting selection expression";
error_message_for(grammar::v1::t::kw_then) = "expecting 'then'";
error_message_for(grammar::v1::t::kw_else) = "expecting 'else'";
error_message_for(grammar::v1::t::kw_in) = "expecting 'in'";
error_message_for(grammar::v1::d::t::inherit) = "expecting ';' to end 'inherit' bindings";
struct SyntaxErrors
{