X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=runtime%2Fsyntax%2Fcrontab.yaml;h=cebc7cad6a6b002a606fe15fae64023048359cfa;hb=54c23cae72d7237bc898a59f79aad0acffdf0ffe;hp=536bf936cbc86bc5a745bfa59d78eb73f52fec67;hpb=47cdfb3de0664e25b6735dad331faf1c93ea33f7;p=micro.git diff --git a/runtime/syntax/crontab.yaml b/runtime/syntax/crontab.yaml index 536bf936..cebc7cad 100644 --- a/runtime/syntax/crontab.yaml +++ b/runtime/syntax/crontab.yaml @@ -14,16 +14,16 @@ rules: # month 0-12 (or names, see below) # day of week 0-7 (0 or 7 is Sun, or use names) - - statement: "^([\\*0-9,\\-\\/]+)\\s+([\\*0-9,\\-\\/]+)\\s+([\\*0-9,\\-\\/]+)\\s+([\\*0-9,\\-\\/]+)\\s+([\\*0-9,\\-\\/]+)\\s+(.*)$\\n?" - - constant: "^([\\*0-9,\\-\\/]+)\\s+([\\*0-9,\\-\\/]+)\\s+([\\*0-9,\\-\\/]+)\\s+([\\*0-9,\\-\\/]+)\\s+([\\*0-9,\\-\\/]+)" + - statement: "^([\\*0-9,\\-\\/]+)\\s+([\\*0-9,\\-\\/]+)\\s+([\\*0-9,\\-\\/]+)\\s+(([\\*0-9,\\-\\/]+)|(\\b(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)\\b))\\s+(([\\*0-9,\\-\\/]+)|(\\b(sun|mon|tue|wed|thu|fri|sat)\\b))\\s+(.*)$\\n?" + - constant: "^([\\*0-9,\\-\\/]+)\\s+([\\*0-9,\\-\\/]+)\\s+([\\*0-9,\\-\\/]+)\\s+(([\\*0-9,\\-\\/]+)|(\\b(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)\\b))\\s+(([\\*0-9,\\-\\/]+)|(\\b(sun|mon|tue|wed|thu|fri|sat)\\b))" # Shell Values - type: "^[A-Z]+\\=" # Months and weekday keywords - - type: "jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec" - - constant: "sun|mon|tue|wed|thu|fri|sat" - - type: "\\@(reboot|yearly|annually|monthly|weekly|daily|midnight|hourly)" + - constant: "\\b(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)\\b" + - constant: "\\b(sun|mon|tue|wed|thu|fri|sat)\\b" + - type: "\\@(reboot|yearly|annually|monthly|weekly|daily|midnight|hourly)\\b" # Conditionals - special: "(\\{|\\}|\\(|\\)|\\;|\\]|\\[|`|\\\\|\\$|<|>|^|!|=|&|\\|)"