summaryrefslogtreecommitdiffstats
path: root/integration
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2022-05-30 01:22:38 +0200
committerJon Bratseth <bratseth@gmail.com>2022-05-30 01:22:38 +0200
commit63e0ca74266f7422cbcd528ff7c8327634ca2a88 (patch)
tree5d59e8fe2a1590753726e71130e7a2e4b9edd197 /integration
parent9a6a224d2905c878e777e59445a1517633a28c2d (diff)
Grammar fixes
Diffstat (limited to 'integration')
-rw-r--r--integration/intellij/src/main/bnf/ai/vespa/intellij/schema/parser/sd.bnf9
1 files changed, 4 insertions, 5 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 558d217d005..59028366edf 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
@@ -33,8 +33,6 @@
COMMENT = 'regexp:#.*'
SYMBOL = 'regexp:[!$|:{}().\[\]]'
COMMA = 'regexp:[,]'
- //BLOCK_START = '{'
- //BLOCK_END = '}'
INTEGER_REG = 'regexp:[0-9]+'
FLOAT_REG = 'regexp:[0-9]+[.][0-9]+([eE][0-9]+)?'
STRING_REG = 'regexp:\"([^\"\\]*(\\.[^\"\\]*)*)\"'
@@ -369,9 +367,10 @@ IdentifierVal ::= KeywordOrIdentifier | ID_REG { mixin="ai.vespa.intellij.schema
}
DottedIdentifier ::= IdentifierVal ('.' IdentifierVal)*
-IdentifierWithDashVal ::= IdentifierVal ('-' IdentifierVal)* { mixin="ai.vespa.intellij.schema.psi.impl.SdIdentifierMixin"
- implements=["ai.vespa.intellij.schema.psi.SdIdentifier"]
- }
+IdentifierWithDashVal ::= IdentifierVal ('-' ( IdentifierVal | INTEGER_REG ) )*
+ { mixin="ai.vespa.intellij.schema.psi.impl.SdIdentifierMixin"
+ implements=["ai.vespa.intellij.schema.psi.SdIdentifier"]
+ }
DottedIdentifierWithDash ::= IdentifierWithDashVal ('.' IdentifierWithDashVal)*
BlockStart ::= (NL)* '{' (NL)*