gbranden pushed a commit to branch master
in repository groff.

commit 8226137dbf8b225a99ffdf228ad0803df19d9852
Author: G. Branden Robinson <[email protected]>
AuthorDate: Fri Mar 6 18:43:13 2026 -0600

    [troff]: Enable "syntax" warnings by default.
    
    * src/roff/troff/input.cpp: Add `WARN_SYNTAX` to default warning "mask".
      (It's not a mask, just a vector--or a set.)
    
    * doc/groff.texi (Warnings):
    * src/roff/troff/troff.1.man (Warnings):
    * NEWS: Document it.
    
    Begins fixing <https://savannah.gnu.org/bugs/?67783>.
---
 ChangeLog                  | 11 +++++++++++
 NEWS                       |  4 ++--
 doc/groff.texi.in          |  1 +
 src/roff/troff/input.cpp   |  3 ++-
 src/roff/troff/troff.1.man |  2 ++
 5 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 833851515..06a9be0c8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2026-03-06  G. Branden Robinson <[email protected]>
+
+       * src/roff/troff/input.cpp: Add `WARN_SYNTAX` to default warning
+       "mask".  (It's not a mask, just a vector--or a set.)
+
+       * doc/groff.texi (Warnings):
+       * src/roff/troff/troff.1.man (Warnings):
+       * NEWS: Document it.
+
+       Begins fixing <https://savannah.gnu.org/bugs/?67783>.
+
 2026-03-06  G. Branden Robinson <[email protected]>
 
        * src/roff/troff/input.cpp: Add `WARN_DELIM` to default warning
diff --git a/NEWS b/NEWS
index 1f89a82a8..c32a2acb4 100644
--- a/NEWS
+++ b/NEWS
@@ -15,8 +15,8 @@ VERSION next
 troff
 -----
 
-*  GNU troff, the formatter, now issues warnings in the "delim" category
-   by default.
+*  GNU troff, the formatter, now issues warnings in the "delim" and
+   "syntax" categories by default.
 
 
 VERSION 1.24.1
diff --git a/doc/groff.texi.in b/doc/groff.texi.in
index 938c3208b..30480b6c8 100644
--- a/doc/groff.texi.in
+++ b/doc/groff.texi.in
@@ -21548,6 +21548,7 @@ or a
 extension escape sequence
 or conditional expression operator
 was used while in compatibility mode.
+This category is enabled by default.
 
 @item di
 @itemx 256
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 73c0a8ee3..951859d1e 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -73,7 +73,8 @@ along with this program.  If not, see 
<http://www.gnu.org/licenses/>. */
 #ifndef DEFAULT_WARNING_CATEGORY_SET
 // warnings that are enabled by default
 #define DEFAULT_WARNING_CATEGORY_SET \
-     (WARN_CHAR|WARN_BREAK|WARN_DELIM|WARN_SPACE|WARN_FONT|WARN_FILE)
+     (WARN_CHAR|WARN_BREAK|WARN_DELIM|WARN_SYNTAX|WARN_SPACE|WARN_FONT\
+      |WARN_FILE)
 #endif
 
 extern "C" const char *program_name;
diff --git a/src/roff/troff/troff.1.man b/src/roff/troff/troff.1.man
index 73b7be9b4..08bee1672 100644
--- a/src/roff/troff/troff.1.man
+++ b/src/roff/troff/troff.1.man
@@ -833,6 +833,8 @@ or a
 extension escape sequence
 or conditional expression operator
 was used while in compatibility mode.
+.
+This category is enabled by default.
 T}
 .
 .

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

Reply via email to