From 91cadb21500e500a1789899522e0e7cfa6586ad3 Mon Sep 17 00:00:00 2001 From: Ameer Ghani Date: Tue, 16 Aug 2022 11:49:11 -0400 Subject: [PATCH] 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. --- rc/filetype/dockerfile.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/filetype/dockerfile.kak b/rc/filetype/dockerfile.kak index c745205f..a9000d82 100644 --- a/rc/filetype/dockerfile.kak +++ b/rc/filetype/dockerfile.kak @@ -6,7 +6,7 @@ # Detection # ‾‾‾‾‾‾‾‾‾ -hook global BufCreate .*/?Dockerfile(\.\w+)?$ %{ +hook global BufCreate .*/?Dockerfile(\..+)?$ %{ set-option buffer filetype dockerfile }