mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-04 14:10:23 +09:00
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:
@@ -1,7 +1,7 @@
|
||||
filetype: crontab
|
||||
|
||||
detect:
|
||||
filename: "crontab$"
|
||||
filename: "crontab$|/tmp/crontab\\.\\w+$"
|
||||
header: "^#.*?/etc/crontab"
|
||||
|
||||
rules:
|
||||
|
||||
Reference in New Issue
Block a user