From 756043760b59adb2e708cfbb6c8f5c0674ba4537 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Thu, 13 Nov 2025 08:22:11 +0800 Subject: vim-patch:9.1.1909: filetype: .mom files recognized as nroff files (#36543) Problem: filetype: .mom files recognized as nroff files Solution: Detect *.mom files as groff filetype instead (Callum Andrew) Reference: - mom macros are written specifically for groff: https://www.schaffter.ca/mom/ closes: vim/vim#18718 https://github.com/vim/vim/commit/23e12c0b7ec02cc374f111fd9dfaa84734dbb7f5 Co-authored-by: Callum Andrew --- runtime/lua/vim/filetype.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'runtime/lua/vim') diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index b83ae1c248..6fad0abde7 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -549,6 +549,8 @@ local extension = { graphql = 'graphql', graphqls = 'graphql', gretl = 'gretl', + groff = 'groff', + mom = 'groff', gradle = 'groovy', groovy = 'groovy', gsp = 'gsp', @@ -874,7 +876,6 @@ local extension = { roff = 'nroff', tmac = 'nroff', man = 'nroff', - mom = 'nroff', nr = 'nroff', tr = 'nroff', nsi = 'nsis', -- cgit