summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-10-09 23:00:41 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-10-09 23:00:41 +0200
commit3da600ac3070976142f81025b53dda44d99d44e4 (patch)
treebd80c8076c91e13c099f512acefbac59d2212995
parent0d48ba92455548018105670980552e54930f60eb (diff)
downloadvim-polyglot-3da600ac3070976142f81025b53dda44d99d44e4.tar.gz
vim-polyglot-3da600ac3070976142f81025b53dda44d99d44e4.zip
Relax previous commit a bit
-rw-r--r--ftdetect/polyglot.vim2
-rwxr-xr-xscripts/build2
2 files changed, 2 insertions, 2 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim
index 3d08e2ab..960e41b1 100644
--- a/ftdetect/polyglot.vim
+++ b/ftdetect/polyglot.vim
@@ -1820,7 +1820,7 @@ if !has_key(s:disabled_packages, 'toml')
endif
if !has_key(s:disabled_packages, 'tmux')
- au BufNewFile,BufRead .tmux*.conf setf tmux
+ au BufNewFile,BufRead {.,}tmux*.conf setf tmux
endif
if !has_key(s:disabled_packages, 'thrift')
diff --git a/scripts/build b/scripts/build
index 6ba4e43a..4783ed21 100755
--- a/scripts/build
+++ b/scripts/build
@@ -579,7 +579,7 @@ def generate_ftdetect(packages, heuristics)
end
for filename in filenames.sort
- if filename.match?(/^\.[^\*\/]+$/)
+ if filename.match?(/^\.[^\/]+[^\*]$/)
filename = "{.,}" + filename[1..-1]
end
if filename[-1] == "*"