summaryrefslogtreecommitdiffstats
path: root/scripts/build
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-10-09 22:57:13 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-10-09 22:57:13 +0200
commit0d48ba92455548018105670980552e54930f60eb (patch)
treece1b41ae7a984eff3709073ae97809bce876f147 /scripts/build
parent1993b9f68fff3cb87413fdc2e328763c291578c4 (diff)
downloadvim-polyglot-0d48ba92455548018105670980552e54930f60eb.tar.gz
vim-polyglot-0d48ba92455548018105670980552e54930f60eb.zip
Fix detecting of some filetypes, closes #579
Diffstat (limited to 'scripts/build')
-rwxr-xr-xscripts/build2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/build b/scripts/build
index 573a8891..6ba4e43a 100755
--- a/scripts/build
+++ b/scripts/build
@@ -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] == "*"