Skip to content

Commit 12a154d

Browse files
committed
feat: regenerate grammar
1 parent a6ba2b9 commit 12a154d

6 files changed

Lines changed: 13 additions & 7 deletions

File tree

src/main/gen/com/github/xepozz/crontab/language/parser/CrontabParser.java

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/gen/com/github/xepozz/crontab/language/psi/CrontabSchedule.java

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/gen/com/github/xepozz/crontab/language/psi/CrontabTypes.java

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/gen/com/github/xepozz/crontab/language/psi/CrontabVisitor.java

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/kotlin/com/github/xepozz/crontab/language/parser/Crontab.bnf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ TIME_SHORTCUT ::= AT CONTENT
4242

4343
SCHEDULE ::= (TIME_POINTER TIME_POINTER TIME_POINTER TIME_POINTER TIME_POINTER) | TIME_SHORTCUT
4444
{
45-
implements=["com.intellij.psi.NavigatablePsiElement"]
45+
implements=["com.intellij.psi.NavigatablePsiElement" "com.intellij.psi.PsiLiteralValue"]
4646
extends="com.github.xepozz.crontab.language.psi.impl.CrontabScheduleBaseImpl"
4747
}
4848

@@ -71,7 +71,7 @@ TIME_EXACT_NUMBER ::= NUMBER
7171
TIME_EXACT_DAY ::= DAY
7272
TIME_EXACT_MONTH ::= MONTH
7373

74-
COMMAND ::= CONTENT
74+
COMMAND ::= CONTENT | NEWLINE
7575
{
7676
implements=["com.intellij.psi.NavigatablePsiElement" "com.intellij.psi.PsiLanguageInjectionHost"]
7777
extends="com.github.xepozz.crontab.language.psi.impl.CrontabCommandBaseImpl"

src/main/kotlin/com/github/xepozz/crontab/language/psi/impl/CrontabScheduleBaseImpl.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ abstract class CrontabScheduleBaseImpl : ASTWrapperPsiElement, CrontabSchedule {
1212

1313
override fun getText() = this.node.text
1414

15+
override fun getValue() = this.text
16+
1517
override fun getPresentation() = PresentationData(text, null, getIcon(0), CrontabAnnotator.SCHEDULE_HIGHLIGHT)
1618

1719
override fun getIcon(flags: Int) = AllIcons.Nodes.DataTables

0 commit comments

Comments
 (0)