gbranden pushed a commit to branch master
in repository groff.
commit 85d248e5e5c3a105769a465d8884ba351294c798
Author: G. Branden Robinson <[email protected]>
AuthorDate: Tue Nov 4 10:19:03 2025 -0600
[troff]: Fix spurious "delim" warning.
* src/roff/troff/input.cpp (token::is_usable_as_delimter): Fix spurious
warning in category "delim" when using a tab character as an escape
sequence as a delimiter. AT&T troff allows that, and so has GNU troff
historically.
Continues commit 39c1176bfa, 25 January. See Savannah #66686 and
Savannah #66526.
$ for v in 1.22.3 1.22.4 1.23.0 HEAD; do printf '\\o\tabc\tdef' \
| ~/groff-$v/bin/nroff -wdelim; done | sed '/^$/d'
cdef
cdef
cdef
troff:<standard input>:1: warning: interpreting a tab character as an
escape sequence delimiter; it is ambiguous because it can also begin a numeric
expression
cdef
---
ChangeLog | 10 ++++++++++
src/roff/troff/input.cpp | 1 -
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index eff1ed3f8..14223b225 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2025-11-04 G. Branden Robinson <[email protected]>
+
+ * src/roff/troff/input.cpp (token::is_usable_as_delimter): Fix
+ spurious warning in category "delim" when using a tab character
+ as an escape sequence as a delimiter. AT&T troff allows that,
+ and so has GNU troff historically.
+
+ Continues commit 39c1176bfa, 25 January. See Savannah #66686
+ and Savannah #66526.
+
2025-11-04 G. Branden Robinson <[email protected]>
* src/utils/pfbtops/pfbtops.c (main):
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 0d0e3dcdc..8e910ebe4 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -2803,7 +2803,6 @@ bool token::is_usable_as_delimiter(bool report_error,
case TOKEN_STRETCHABLE_SPACE:
case TOKEN_UNSTRETCHABLE_SPACE:
case TOKEN_HORIZONTAL_SPACE:
- case TOKEN_TAB:
case TOKEN_NEWLINE:
case TOKEN_EOF:
if (report_error)
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit