gbranden pushed a commit to branch master
in repository groff.

commit 2f0a721a3ecc2c8a8ff1edc8531f960fff546407
Author: G. Branden Robinson <[email protected]>
AuthorDate: Thu Apr 14 11:18:10 2022 +1000

    src/roff/troff/input.cpp: Clarify diagnostic.
    
    * src/roff/troff/input.cpp (do_if_request): Clarify diagnostic; at the
      point it is thrown, we know not merely that we're in a conditional
      expression, but processing an output comparison operator.
---
 ChangeLog                | 7 +++++++
 src/roff/troff/input.cpp | 4 ++--
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index a38ed01f..b5a97cf2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2022-04-14  G. Branden Robinson <[email protected]>
+
+       * src/roff/troff/input.cpp (do_if_request): Clarify diagnostic;
+       at the point it is thrown, we know not merely that we're in a
+       conditional expression, but processing an output comparison
+       operator.
+
 2022-04-13  G. Branden Robinson <[email protected]>
 
        * doc/groff.texi:
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 493d1633..36822033 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -5829,8 +5829,8 @@ int do_if_request()
       for (;;) {
        tok.next();
        if (tok.is_newline() || tok.is_eof()) {
-         warning(WARN_DELIM, "missing closing delimiter in conditional"
-                 " expression (got %1)", tok.description());
+         warning(WARN_DELIM, "missing closing delimiter in output"
+                 " comparison operator (got %1)", tok.description());
          tok.next();
          curenv = oldenv;
          return 0;

_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to