diff options
author | Jon Bratseth <bratseth@gmail.com> | 2022-05-30 01:16:51 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@gmail.com> | 2022-05-30 01:16:51 +0200 |
commit | 9a6a224d2905c878e777e59445a1517633a28c2d (patch) | |
tree | 57bc784881eafbb9f4bbf1a36bc49e005e908ff2 /integration/intellij/src | |
parent | 59c9625b72f77bc2b23aa1c8f60699758881a306 (diff) |
Grammar fixes
Diffstat (limited to 'integration/intellij/src')
-rw-r--r-- | integration/intellij/src/main/bnf/ai/vespa/intellij/schema/parser/sd.bnf | 2 | ||||
-rw-r--r-- | integration/intellij/src/main/jflex/ai/vespa/intellij/schema/lexer/sd.flex | 2 |
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+ |