rc/filetype/dockerfile: detect filenames that contain special characters

Dockerfiles of the form `Dockerfile.foo-bar` were not detected for syntax
highlighting.

Mainly meaning for this to capture _ and -, but I don't see why we wouldn't
capture any special character.
This commit is contained in:
Ameer Ghani 2022-08-16 11:49:11 -04:00
parent 31e9fc3cef
commit 91cadb2150

View File

@ -6,7 +6,7 @@
# Detection # Detection
# ‾‾‾‾‾‾‾‾‾ # ‾‾‾‾‾‾‾‾‾
hook global BufCreate .*/?Dockerfile(\.\w+)?$ %{ hook global BufCreate .*/?Dockerfile(\..+)?$ %{
set-option buffer filetype dockerfile set-option buffer filetype dockerfile
} }