From a5e5e52c2a6244daf073547e644850993c47d36d Mon Sep 17 00:00:00 2001 From: Jon Bratseth Date: Sun, 29 May 2022 14:52:05 +0200 Subject: Grammar fixes --- config-model/src/test/derived/neuralnet_noqueryprofile/neuralnet.sd | 2 +- .../intellij/src/main/bnf/ai/vespa/intellij/schema/parser/sd.bnf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config-model/src/test/derived/neuralnet_noqueryprofile/neuralnet.sd b/config-model/src/test/derived/neuralnet_noqueryprofile/neuralnet.sd index d06ca2677a1..073813d2198 100644 --- a/config-model/src/test/derived/neuralnet_noqueryprofile/neuralnet.sd +++ b/config-model/src/test/derived/neuralnet_noqueryprofile/neuralnet.sd @@ -1,5 +1,5 @@ # Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -search neuralnet { +schema neuralnet { document neuralnet { 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 764a0c0944c..945f58ad8df 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 @@ -195,7 +195,7 @@ private MinHitsDefinition ::= min-hits-per-thread ':' INTEGER_REG private NumSearchPartitionsDefinition ::= num-search-partitions ':' INTEGER_REG FieldWeightDefinition ::= weight DottedIdentifier ':' INTEGER_REG StrictDefinition ::= strict ':' (true | false) -InputsDefinition ::= inputs BlockStart InputDefinition* BlockEnd +InputsDefinition ::= inputs BlockStart ( InputDefinition | NL )* BlockEnd InputDefinition ::= ( QueryFeature | IdentifierVal) (':')? ( TensorType | "double" )? (':'? ( AnyNumber | TensorValue ) )? -- cgit v1.2.3