mirror of
https://github.com/neovim/neovim.git
synced 2026-05-03 04:25:03 +00:00
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.
ef387c062b
Co-authored-by: dkearns <dougkearns@gmail.com>
This commit is contained in:
@@ -422,7 +422,7 @@ end
|
||||
--- @param bufnr integer
|
||||
--- @return boolean
|
||||
local function is_modula2(bufnr)
|
||||
return matchregex(nextnonblank(bufnr, 1), [[\<MODULE\s\+\w\+\s*;\|^\s*(\*]])
|
||||
return matchregex(nextnonblank(bufnr, 1), [[\<MODULE\s\+\w\+\s*\%(\[.*]\s*\)\=;\|^\s*(\*]])
|
||||
end
|
||||
|
||||
--- @param bufnr integer
|
||||
|
||||
Reference in New Issue
Block a user