Fix detecting of some filetypes, closes #579

This commit is contained in:
Adam Stankiewicz
2020-10-09 22:57:13 +02:00
parent 1993b9f68f
commit 0d48ba9245
8 changed files with 69 additions and 29 deletions

View File

@@ -579,7 +579,7 @@ def generate_ftdetect(packages, heuristics)
end
for filename in filenames.sort
if filename[0] == "."
if filename.match?(/^\.[^\*\/]+$/)
filename = "{.,}" + filename[1..-1]
end
if filename[-1] == "*"

View File

@@ -46,7 +46,7 @@ test_helptags = <<~EOF
EOF
run_vimscript('source tests/filetypes.vim')
# run_vimscript('source tests/extensions.vim')
run_vimscript('source tests/extensions.vim')
run_script(test_helptags)
# run_vimscript("