File tree Expand file tree Collapse file tree
src/main/kotlin/com/github/xepozz/crontab/language/parser Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ PWD = '/my/dir/2'
3737*/4 * 2/2 1-10/1 * /usr/local/bin/php
3838*/4 * 2/2 Mon-Fri jan /usr/local/bin/php
3939
40- 1,2 * * * *
41-
40+ 1,2 * * * * q
4241
42+ @reboot root /bin/bash echo
43+ @reboot root /bin/bash echo
Original file line number Diff line number Diff line change @@ -60,12 +60,12 @@ MONTH_PATTERN = (JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)
6060 ( [^] | \/ \D) { yypushback(1 ); yybegin(COMMAND ); }
6161}
6262<COMMAND> {
63- ( [^\s][^\n] *) { yybegin(YYINITIAL ); return CrontabTypes . CONTENT ; }
63+ [^\s][^\n] * { yybegin(YYINITIAL ); return CrontabTypes . CONTENT ; }
6464}
6565<SIMPLE_SYNTAX> {
6666 [^\s] + { return CrontabTypes . CONTENT ; }
6767 {WHITESPACE} { return TokenType . WHITE_SPACE ; }
68- ( [\s][^] ) { yypushback(yylength()); yybegin(COMMAND ); }
68+ [\s] + [^] { yypushback(yylength()); yybegin(COMMAND ); }
6969}
7070
7171{WHITESPACE} { return TokenType . WHITE_SPACE ; }
You can’t perform that action at this time.
0 commit comments