# HG changeset patch # User Christian Brabandt # Date 1708372812 -3600 # Node ID b534715fa52c9017a6726b2386c46dcf3912cbef # Parent f8dc9a9f5727cf301a805bb635b0ed1edd853e24 runtime(filetype): Modula-2 files with priority not detected (#14055) Commit: https://github.com/vim/vim/commit/ef387c062bb1966187d3f307d697d80162051a0d Author: dkearns Date: Tue Feb 20 06:58:30 2024 +1100 runtime(filetype): Modula-2 files with priority not detected (https://github.com/vim/vim/issues/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. Signed-off-by: Doug Kearns Signed-off-by: Christian Brabandt diff --git a/runtime/autoload/dist/ft.vim b/runtime/autoload/dist/ft.vim --- a/runtime/autoload/dist/ft.vim +++ b/runtime/autoload/dist/ft.vim @@ -3,7 +3,7 @@ vim9script # Vim functions for file type detection # # Maintainer: The Vim Project -# Last Change: 2024 Jan 05 +# Last Change: 2024 Feb 18 # Former Maintainer: Bram Moolenaar # These functions are moved here from runtime/filetype.vim to make startup @@ -531,7 +531,7 @@ def IsLProlog(): bool enddef def IsModula2(): bool - return getline(nextnonblank(1)) =~ '\