From f25c0c1eb9be7664ed01a648008e55b406c6222a Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Wed, 21 Feb 2024 06:29:53 +0800 Subject: vim-patch:ef387c062bb1 (#27553) runtime(filetype): Modula-2 files with priority not detected (vim/vim#14055) Problem: Modula-2 files with a specified priority are not detected. Solution: Match the priority syntax in module header lines when performing heuristic content detection. Disable the :defcompile debug line. This was accidentally left enabled in commit 68a8947. https://github.com/vim/vim/commit/ef387c062bb1966187d3f307d697d80162051a0d Co-authored-by: dkearns --- runtime/lua/vim/filetype/detect.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/lua/vim') diff --git a/runtime/lua/vim/filetype/detect.lua b/runtime/lua/vim/filetype/detect.lua index ce3b873e40..3db4f2bcdc 100644 --- a/runtime/lua/vim/filetype/detect.lua +++ b/runtime/lua/vim/filetype/detect.lua @@ -422,7 +422,7 @@ end --- @param bufnr integer --- @return boolean local function is_modula2(bufnr) - return matchregex(nextnonblank(bufnr, 1), [[\