URL:
  <https://savannah.gnu.org/bugs/?67812>

                 Summary: [troff] refactor `token::next()` to complain about
formatting operations after `\c`
                   Group: GNU roff
               Submitter: gbranden
               Submitted: Sun 14 Dec 2025 12:12:09 AM UTC
                Category: Core
                Severity: 1 - Wish
              Item Group: Warning/Suspicious behaviour
                  Status: Postponed
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Unlocked
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Sun 14 Dec 2025 12:12:09 AM UTC By: G. Branden Robinson <gbranden>
We do this on a very limited basis right now (and I have pending in my working
copy a slight extension thereof).

But doing it comprehensively under the approach I'm currently taking would
lead to big-time DRY violations.

`token::next()` should do one check of `curenv->get_was_line_interrupted()`
each time through (which will be false more often than not), and then issue
the warning if the next token isn't one of the handful that can validly occur
after `\c` on in input line.







    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?67812>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature

Reply via email to