gbranden pushed a commit to branch master
in repository groff.

commit e401cc8dcc646a9475bfb7b6dc07f0dfb8b10d8d
Author: G. Branden Robinson <g.branden.robin...@gmail.com>
AuthorDate: Mon Mar 17 12:54:15 2025 -0500

    [troff]: Correct/clarify error diagnostics.
    
    It is not just ordinary and special characters that can be user-defined,
    but indexed ones (`\N'99'`) as well.
---
 src/roff/troff/input.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 1235c4d08..c1b29a41d 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -8026,8 +8026,8 @@ static void set_hyphenation_codes()
     charinfo *cidst = tok.get_char();
     if (0 == cdst) {
       if (0 /* nullptr */ == cidst) {
-       error("expected ordinary or special character, got %1",
-             tok.description());
+       error("expected ordinary, special, or indexed character,"
+             " got %1", tok.description());
        break;
       }
     }
@@ -8049,8 +8049,8 @@ static void set_hyphenation_codes()
       new_code = cisrc->get_hyphenation_code();
     if (0 == csrc) {
       if (0 /* nullptr */ == cisrc) {
-       error("expected ordinary or special character, got %1",
-             tok.description());
+       error("expected ordinary, special, or indexed character,"
+             " got %1", tok.description());
        break;
       }
       new_code = cisrc->get_hyphenation_code();

_______________________________________________
groff-commit mailing list
groff-commit@gnu.org
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to