From 828871acdf8bd048ac553a96512bbd150c2e28b7 Mon Sep 17 00:00:00 2001 From: Dmytro Maluka Date: Mon, 1 Apr 2024 19:50:42 +0200 Subject: [PATCH] Improve crontab filetype detection (#3222) Support crontab filetype detection in the case crontab is opened via sudoedit. Also apparently this fixes crontab filetype detection when it is opened normally via `crontab -e` but in MacOS. Fixes #3172 --- runtime/syntax/crontab.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/syntax/crontab.yaml b/runtime/syntax/crontab.yaml index 86566512a7..2b63045334 100644 --- a/runtime/syntax/crontab.yaml +++ b/runtime/syntax/crontab.yaml @@ -1,7 +1,7 @@ filetype: crontab detect: - filename: "crontab$" + filename: "crontab$|/tmp/crontab\\.\\w+$" header: "^#.*?/etc/crontab" rules: