Skip to content

Commit 828871a

Browse files
authored
Improve crontab filetype detection (zyedidia#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 zyedidia#3172
1 parent dc833d3 commit 828871a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/syntax/crontab.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
filetype: crontab
22

33
detect:
4-
filename: "crontab$"
4+
filename: "crontab$|/tmp/crontab\\.\\w+$"
55
header: "^#.*?/etc/crontab"
66

77
rules:

0 commit comments

Comments
 (0)