[vim/vim] filetype: Groff files are not recognized (PR #18718)

3 views
Skip to first unread message

Callum Andrew

unread,
Nov 10, 2025, 6:12:10 PM (yesterday) Nov 10
to vim/vim, Subscribed

Problem: Groff files are not recognized
Solution: Add patterns for filetypes specific to groff


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/18718

Commit Summary

  • 9bec2bf filetype: Groff files are not recognized

File Changes

(2 files)

Patch Links:


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18718@github.com>

Christian Brabandt

unread,
9:40 AM (11 hours ago) 9:40 AM
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#18718)

Unless I am missing something, making *.mom now a groff filetype and no longer a nroff filetype is a backwards incompatible change. How does such a change affect users with regard to e.g. syntax highlighting?


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18718/c3517221253@github.com>

Callum Andrew

unread,
8:31 PM (1 hour ago) 8:31 PM
to vim/vim, Subscribed
candrew66 left a comment (vim/vim#18718)

The change should be backwards compatible as GNU troff syntax in vim only adds additional syntax highlighting options to nroff. git grep nroff_is_groff should show all the differences, with the only removal affecting the ms macros (a different filetype).

For users, the file will probably just look better, with long request names beyond two characters (which mom nearly always uses) and comments beginning with \# being recognised.

image.png (view on web) image.png (view on web)


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18718/c3519457229@github.com>

Reply all
Reply to author
Forward
0 new messages