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:
parent
31e9fc3cef
commit
91cadb2150
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user