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
This commit is contained in:
Dmytro Maluka
2024-04-01 19:50:42 +02:00
committed by GitHub
parent dc833d3552
commit 828871acdf

View File

@@ -1,7 +1,7 @@
filetype: crontab
detect:
filename: "crontab$"
filename: "crontab$|/tmp/crontab\\.\\w+$"
header: "^#.*?/etc/crontab"
rules: