gbranden pushed a commit to branch master
in repository groff.
commit 1ed4fdf274cd09512aed1bd3cff12188ec990b03
Author: G. Branden Robinson <[email protected]>
AuthorDate: Tue Nov 18 13:13:59 2025 -0600
[troff]: Tweak diagnostic wording.
* src/roff/troff/input.cpp (token::get_char): Recognize existence of
indexed characters in diagnostic messages.
---
ChangeLog | 5 +++++
src/roff/troff/input.cpp | 5 +++--
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 6d0643d23..eb8529123 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2025-11-18 G. Branden Robinson <[email protected]>
+
+ * src/roff/troff/input.cpp (token::get_char): Recognize
+ existence of indexed characters in diagnostic messages.
+
2025-11-19 G. Branden Robinson <[email protected]>
* doc/groff.texi.in (Manipulating Hyphenation):
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index dc6c4e77a..2dcbe31ee 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -8663,9 +8663,10 @@ charinfo *token::get_char(bool required, bool
suppress_creation)
}
if (required) {
if (type == TOKEN_EOF || type == TOKEN_NEWLINE)
- warning(WARN_MISSING, "missing ordinary or special character");
+ warning(WARN_MISSING, "missing ordinary, special, or indexed"
+ " character");
else
- error("expected ordinary or special character, got %1",
+ error("expected ordinary, special, or indexed character, got %1",
description());
}
return 0 /* nullptr */;
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit