From 9a6a224d2905c878e777e59445a1517633a28c2d Mon Sep 17 00:00:00 2001 From: Jon Bratseth Date: Mon, 30 May 2022 01:16:51 +0200 Subject: Grammar fixes --- .../intellij/src/main/bnf/ai/vespa/intellij/schema/parser/sd.bnf | 2 +- .../intellij/src/main/jflex/ai/vespa/intellij/schema/lexer/sd.flex | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'integration') 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 cba0d335c84..558d217d005 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 @@ -36,7 +36,7 @@ //BLOCK_START = '{' //BLOCK_END = '}' INTEGER_REG = 'regexp:[0-9]+' - FLOAT_REG = 'regexp:[0-9]+[.][0-9]+[e]?' + FLOAT_REG = 'regexp:[0-9]+[.][0-9]+([eE][0-9]+)?' STRING_REG = 'regexp:\"([^\"\\]*(\\.[^\"\\]*)*)\"' STRING_REG_SINGLE_QUOTE = "regexp:'([^'\\]*(\\.[^'\\]*)*)'" WORD_REG = 'regexp:\w+' diff --git a/integration/intellij/src/main/jflex/ai/vespa/intellij/schema/lexer/sd.flex b/integration/intellij/src/main/jflex/ai/vespa/intellij/schema/lexer/sd.flex index a07caee96ac..b5486d6f77f 100644 --- a/integration/intellij/src/main/jflex/ai/vespa/intellij/schema/lexer/sd.flex +++ b/integration/intellij/src/main/jflex/ai/vespa/intellij/schema/lexer/sd.flex @@ -39,7 +39,7 @@ COMMA= [,] //BLOCK_START= \{ //BLOCK_END= \} INTEGER = [0-9]+ -FLOAT = {INTEGER}[.][0-9]+[e]? +FLOAT = {INTEGER}[.][0-9]+([eE][0-9]+)? STRING = \"([^\"\\]*(\\.[^\"\\]*)*)\" STRING_SINGLE_QUOTE = '([^'\\]*(\\.[^'\\]*)*)' WORD = \w+ -- cgit v1.2.3