bitmark-standard / bitmark-grammar

7 stars 0 forks source link

[.record-audio] bit converted to wrong type 'record' in the JSON #11

Open six5536 opened 1 year ago

six5536 commented 1 year ago

Describe the bug [.record-audio] bit converted to wrong type 'record' in the JSON

To Reproduce Parse the following bitmark to produce JSON output:

[.record-audio]
[@id:285770]
[%42][%record-audio]
[!Say "hello"]

The following JSON is produced:

{
   "bitmark": "[.record-audio]\n[@id:285770]\n[%42][%record-audio]\n[!Say \"hello\"]",
   "bit": {
     "type": "record",
     "format": "bitmark--",
     "body": "",
     "item": "42",
     "hint": "",
     "isExample": false,
     "example": "",
     "id": ["285770"],
     "lead": "record-audio",
     "instruction": "Say \"hello\""
   }
 }

Expected behavior type = record-audio

versions 1.0.38