summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Peter <sharkdp@users.noreply.github.com>2023-03-24 22:09:32 +0100
committerGitHub <noreply@github.com>2023-03-24 22:09:32 +0100
commit4e491c4594e4f5ae309197f92b50e2e96ad443c9 (patch)
treecf85cd76e8a0aa6e36e80c87797ec28e2d1c6b55
parent1a142a82b4c9e0c29eaf134bd5008012c88f88d3 (diff)
parentb65a02681a87eb61cecb81b34275bf877c82c062 (diff)
Merge pull request #2509 from sharkdp/crontab
Add crontab syntax
-rw-r--r--.gitmodules5
-rw-r--r--CHANGELOG.md1
m---------assets/syntaxes/02_Extra/Crontab0
-rw-r--r--tests/syntax-tests/highlighted/Crontab/crontab.tab8
-rw-r--r--tests/syntax-tests/source/Crontab/crontab.tab8
5 files changed, 21 insertions, 1 deletions
diff --git a/.gitmodules b/.gitmodules
index 2b0caad6..f84fdb08 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -250,4 +250,7 @@
[submodule "assets/syntaxes/02_Extra/Ada"]
path = assets/syntaxes/02_Extra/Ada
url = https://github.com/wiremoons/ada-sublime-syntax
- \ No newline at end of file
+
+[submodule "assets/syntaxes/02_Extra/Crontab"]
+ path = assets/syntaxes/02_Extra/Crontab
+ url = https://github.com/michaelblyons/SublimeSyntax-Crontab
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 013f00e4..7f723070 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -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
diff --git a/assets/syntaxes/02_Extra/Crontab b/assets/syntaxes/02_Extra/Crontab
new file mode 160000
+Subproject 54f1fa7ff0c9d18aea3790555dba6e533ce3749
diff --git a/tests/syntax-tests/highlighted/Crontab/crontab.tab b/tests/syntax-tests/highlighted/Crontab/crontab.tab
new file mode 100644
index 00000000..509309ea
--- /dev/null
+++ b/tests/syntax-tests/highlighted/Crontab/crontab.tab
@@ -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
diff --git a/tests/syntax-tests/source/Crontab/crontab.tab b/tests/syntax-tests/source/Crontab/crontab.tab
new file mode 100644
index 00000000..a43bd995
--- /dev/null
+++ b/tests/syntax-tests/source/Crontab/crontab.tab
@@ -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