Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add crontab syntax #2509

Merged
merged 1 commit into from
Mar 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -250,4 +250,7 @@
[submodule "assets/syntaxes/02_Extra/Ada"]
path = assets/syntaxes/02_Extra/Ada
url = https://github.com/wiremoons/ada-sublime-syntax


[submodule "assets/syntaxes/02_Extra/Crontab"]
path = assets/syntaxes/02_Extra/Crontab
url = https://github.com/michaelblyons/SublimeSyntax-Crontab
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
- Associate `pdm.lock` with `TOML` syntax, see #2410
- `Todo.txt`: Fix highlighting of contexts and projects at beginning of done.txt, see #2411
- `cmd-help`: overhaul scope names (colors) to improve theme support; misc syntax improvements. See #2419 (@victor-gp)
- Added support for Crontab, see #2509 (@keith-hall)

## Themes

Expand Down
1 change: 1 addition & 0 deletions assets/syntaxes/02_Extra/Crontab
Submodule Crontab added at 54f1fa
8 changes: 8 additions & 0 deletions tests/syntax-tests/highlighted/Crontab/crontab.tab
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
0 2 * * * /bin/sh backup.sh
*/10 * * * * /home/maverick/check-disk-space
0 5,17 * * * /scripts/script.sh
0 2 * * sun [ $(date +%d) -le 07 ] && /script/script.sh
@daily /scripts/script.sh
@reboot /scripts/script.sh

MAIL=bob
8 changes: 8 additions & 0 deletions tests/syntax-tests/source/Crontab/crontab.tab
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
0 2 * * * /bin/sh backup.sh
*/10 * * * * /home/maverick/check-disk-space
0 5,17 * * * /scripts/script.sh
0 2 * * sun [ $(date +%d) -le 07 ] && /script/script.sh
@daily /scripts/script.sh
@reboot /scripts/script.sh

MAIL=bob