diff options
author | Jon Bratseth <bratseth@gmail.com> | 2022-05-29 15:03:18 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@gmail.com> | 2022-05-29 15:03:18 +0200 |
commit | 9acd22ee9bb6b60a32925b5a7f7f5c4f2eb6f34c (patch) | |
tree | 80633d1801cecd21f7d5df17c642fb4704142200 /integration/intellij | |
parent | a5e5e52c2a6244daf073547e644850993c47d36d (diff) |
Use modern syntax
Diffstat (limited to 'integration/intellij')
-rw-r--r-- | integration/intellij/src/main/bnf/ai/vespa/intellij/schema/parser/sd.bnf | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/integration/intellij/src/main/bnf/ai/vespa/intellij/schema/parser/sd.bnf b/integration/intellij/src/main/bnf/ai/vespa/intellij/schema/parser/sd.bnf index 945f58ad8df..b20caad51f9 100644 --- a/integration/intellij/src/main/bnf/ai/vespa/intellij/schema/parser/sd.bnf +++ b/integration/intellij/src/main/bnf/ai/vespa/intellij/schema/parser/sd.bnf @@ -171,7 +171,7 @@ RankProfileDefinition ::= (rank-profile | model) IdentifierWithDashVal (inherits { mixin="ai.vespa.intellij.schema.psi.impl.SdNamedElementImpl" implements=["ai.vespa.intellij.schema.psi.SdDeclaration"] } -private RankProfileBody ::= ( RankProfileBodyOptions (NL)* )* // Does not support zero-or-one occurrences +private RankProfileBody ::= ( RankProfileBodyOptions | NL )* private RankProfileBodyOptions ::= MatchPhaseDefinition | NumThreadsDefinition | FunctionDefinition | TermwiseLimitDefinition | ignore-default-rank-features | RankPropertiesDefinition | FirstPhaseDefinition | SummaryFeaturesDefinition | MatchFeaturesDefinition | RankFeaturesDefinition | @@ -229,11 +229,11 @@ ArgumentDefinition ::= IdentifierVal implements=["ai.vespa.intellij.schema.psi.SdDeclaration" "ai.vespa.intellij.schema.psi.SdNamedElement"] } -SummaryFeaturesDefinition ::= summary-features ((':' RankFeature+ (NL)+) | ((inherits IdentifierWithDashVal)? BlockStart RankFeature* BlockEnd)) +SummaryFeaturesDefinition ::= summary-features ((':' RankFeature+ (NL)+) | ((inherits IdentifierWithDashVal)? BlockStart ( RankFeature | NL )* BlockEnd)) -MatchFeaturesDefinition ::= match-features ((':' RankFeature+ (NL)+) | ((inherits IdentifierWithDashVal)? BlockStart RankFeature* BlockEnd)) +MatchFeaturesDefinition ::= match-features ((':' RankFeature+ (NL)+) | ((inherits IdentifierWithDashVal)? BlockStart ( RankFeature | NL )* BlockEnd)) -RankFeaturesDefinition ::= rank-features ((':' RankFeature+ (NL)+) | (BlockStart RankFeature* BlockEnd)) +RankFeaturesDefinition ::= rank-features ((':' RankFeature+ (NL)+) | (BlockStart ( RankFeature | NL )* BlockEnd)) ConstantsDefinition ::= constants BlockStart ( InnerConstantDefinition | NL )* BlockEnd |