Skip to content

Commit

Permalink
Improve crontab filetype detection (#3222)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
dmaluka authored Apr 1, 2024
1 parent dc833d3 commit 828871a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/syntax/crontab.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
filetype: crontab

detect:
filename: "crontab$"
filename: "crontab$|/tmp/crontab\\.\\w+$"
header: "^#.*?/etc/crontab"

rules:
Expand Down

0 comments on commit 828871a

Please sign in to comment.