diff options
-rw-r--r-- | integration/intellij/build.gradle | 4 | ||||
-rw-r--r-- | integration/intellij/src/main/bnf/ai/vespa/intellij/schema/parser/sd.bnf | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/integration/intellij/build.gradle b/integration/intellij/build.gradle index 6c874269c5d..6bc385a983c 100644 --- a/integration/intellij/build.gradle +++ b/integration/intellij/build.gradle @@ -64,7 +64,9 @@ patchPluginXml { untilBuild = '213.*' // in changeNotes you can add a description of the changes in this version (would appear in the plugin page in preferences\plugins) changeNotes = """ - <em>Support for inputs in rank profiles.</em>""" + Support for inputs in rank profiles. + Correct parsing of lambda expressions. + """ } test { 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 952e73edb66..cb4bc024c86 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 @@ -111,8 +111,7 @@ AnnotationFieldDefinition ::= field IdentifierVal type FieldTypeName '{' '}' // The *Expr alternatives are consumed greedily so order matters. //------------------------- RankingExpression ::= LiteralTensorExpr | FilePathExpr | ParenthesisedExpr | BooleanExpr | ArithmeticExpr | IfFunctionExpr | - QueryDefinitionExpr | FunctionCallExpr | InListRankingExpr | PrimitiveExpr | - SliceExpr + QueryDefinitionExpr | FunctionCallExpr | InListRankingExpr | PrimitiveExpr | SliceExpr | LambdaExpr FilePathExpr ::= file ':' (FilePath | WordWrapper) @@ -153,6 +152,8 @@ TensorValue ::= CellAddress ':' RankingExpression CellAddress ::= Label | FullTensorAddress +LambdaExp ::= FunctionCallExpr ParenthesisedExpr + //------------------------- //-- Rank Profile rules --- //------------------------- |