X-Git-Url: https://git.r.bdr.sh/rbdr/tree-sitter-api-notation/blobdiff_plain/0931d6ef75e5dc37ba6bd7bb92c369d1df99e6d3..4a1d56285559545a56cb7c79a0ea1564f01e09e5:/src/grammar.json?ds=inline 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": [