...

Text file src/oss.terrastruct.com/d2/testdata/d2parser/TestParse/block_with_delims.exp.json

Documentation: oss.terrastruct.com/d2/testdata/d2parser/TestParse

     1{
     2  "ast": {
     3    "range": "d2/testdata/d2parser/TestParse/block_with_delims.d2,0:0:0-8:0:34",
     4    "nodes": [
     5      {
     6        "map_key": {
     7          "range": "d2/testdata/d2parser/TestParse/block_with_delims.d2,1:0:1-3:2:18",
     8          "key": {
     9            "range": "d2/testdata/d2parser/TestParse/block_with_delims.d2,1:0:1-1:1:2",
    10            "path": [
    11              {
    12                "unquoted_string": {
    13                  "range": "d2/testdata/d2parser/TestParse/block_with_delims.d2,1:0:1-1:1:2",
    14                  "value": [
    15                    {
    16                      "string": "a",
    17                      "raw_string": "a"
    18                    }
    19                  ]
    20                }
    21              }
    22            ]
    23          },
    24          "primary": {},
    25          "value": {
    26            "block_string": {
    27              "range": "d2/testdata/d2parser/TestParse/block_with_delims.d2,1:3:4-3:2:18",
    28              "quote": "|",
    29              "tag": "md",
    30              "value": "|pipe|"
    31            }
    32          }
    33        }
    34      },
    35      {
    36        "block_comment": {
    37          "range": "d2/testdata/d2parser/TestParse/block_with_delims.d2,5:0:20-7:3:33",
    38          "value": "b: \"\""
    39        }
    40      }
    41    ]
    42  },
    43  "err": null
    44}

View as plain text