From ee88497b4451225c3140f56d98ebcbc166175407 Mon Sep 17 00:00:00 2001 From: pommicket Date: Mon, 15 Sep 2025 13:52:32 -0400 Subject: Errors tests; fix some non-errors --- errors.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'errors.c') diff --git a/errors.c b/errors.c index 2e83f4a..014bea2 100644 --- a/errors.c +++ b/errors.c @@ -21,6 +21,7 @@ enum error_id { ERROR_INVALID_LINE, ERROR_EMPTY_KEY, ERROR_REDEFINITION, + ERROR_NO_CLOSING_QUOTE, ERROR_COUNT, }; @@ -41,6 +42,7 @@ static const char *const error_messages_en[ERROR_COUNT] = { [ERROR_INVALID_LINE] = "Line should start with [ or contain =", [ERROR_EMPTY_KEY] = "Expected key name before =", [ERROR_REDEFINITION] = "Re-definition of %s (previously defined on line %" PRIu64 ")", + [ERROR_NO_CLOSING_QUOTE] = "Missing closing %c", }; @@ -61,6 +63,7 @@ static const char *const error_messages_fr[ERROR_COUNT] = { [ERROR_INVALID_LINE] = "Ligne devrait commençant par [ ou contenir =", [ERROR_EMPTY_KEY] = "Nom de clé devrait précéder =", [ERROR_REDEFINITION] = "Redéfinition de %s (définition précédente à ligne %" PRIu64 ")", + [ERROR_NO_CLOSING_QUOTE] = "Aucun %c fermant", }; static struct { -- cgit v1.2.3