aboutsummaryrefslogtreecommitdiff
path: root/src/grammar.json
diff options
context:
space:
mode:
Diffstat (limited to 'src/grammar.json')
-rw-r--r--src/grammar.json30
1 files changed, 28 insertions, 2 deletions
diff --git a/src/grammar.json b/src/grammar.json
index 1d2d121..e25308a 100644
--- a/src/grammar.json
+++ b/src/grammar.json
@@ -316,8 +316,17 @@
"type": "SEQ",
"members": [
{
- "type": "SYMBOL",
- "name": "_label"
+ "type": "CHOICE",
+ "members": [
+ {
+ "type": "SYMBOL",
+ "name": "optional_value"
+ },
+ {
+ "type": "SYMBOL",
+ "name": "_label"
+ }
+ ]
},
{
"type": "CHOICE",
@@ -370,6 +379,23 @@
]
}
},
+ "optional_value": {
+ "type": "SEQ",
+ "members": [
+ {
+ "type": "STRING",
+ "value": "["
+ },
+ {
+ "type": "SYMBOL",
+ "name": "_label"
+ },
+ {
+ "type": "STRING",
+ "value": "]"
+ }
+ ]
+ },
"type_annotation": {
"type": "SEQ",
"members": [