mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-14 14:33:50 -05:00
Fix detecting of some filetypes, closes #579
This commit is contained in:
@@ -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] == "*"
|
||||
|
||||
@@ -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("
|
||||
|
||||
Reference in New Issue
Block a user