aboutsummaryrefslogtreecommitdiffstats
path: root/integration
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2022-05-30 01:16:51 +0200
committerJon Bratseth <bratseth@gmail.com>2022-05-30 01:16:51 +0200
commit9a6a224d2905c878e777e59445a1517633a28c2d (patch)
tree57bc784881eafbb9f4bbf1a36bc49e005e908ff2 /integration
parent59c9625b72f77bc2b23aa1c8f60699758881a306 (diff)
Grammar fixes
Diffstat (limited to 'integration')
-rw-r--r--integration/intellij/src/main/bnf/ai/vespa/intellij/schema/parser/sd.bnf2
-rw-r--r--integration/intellij/src/main/jflex/ai/vespa/intellij/schema/lexer/sd.flex2
2 files changed, 2 insertions, 2 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 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+