...

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

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

     1{
     2  "ast": {
     3    "range": "d2/testdata/d2parser/TestParse/field_line_continuation.d2,0:0:0-9:2:85",
     4    "nodes": [
     5      {
     6        "map_key": {
     7          "range": "d2/testdata/d2parser/TestParse/field_line_continuation.d2,1:0:1-4:13:42",
     8          "key": {
     9            "range": "d2/testdata/d2parser/TestParse/field_line_continuation.d2,1:0:1-3:7:21",
    10            "path": [
    11              {
    12                "unquoted_string": {
    13                  "range": "d2/testdata/d2parser/TestParse/field_line_continuation.d2,1:0:1-3:7:21",
    14                  "value": [
    15                    {
    16                      "string": "meow ok super",
    17                      "raw_string": "meow ok super"
    18                    }
    19                  ]
    20                }
    21              }
    22            ]
    23          },
    24          "primary": {},
    25          "value": {
    26            "unquoted_string": {
    27              "range": "d2/testdata/d2parser/TestParse/field_line_continuation.d2,3:9:23-4:13:42",
    28              "value": [
    29                {
    30                  "string": "yes wow so cool",
    31                  "raw_string": "yes wow so cool"
    32                }
    33              ]
    34            }
    35          }
    36        }
    37      },
    38      {
    39        "map_key": {
    40          "range": "d2/testdata/d2parser/TestParse/field_line_continuation.d2,5:2:45-8:28:82",
    41          "key": {
    42            "range": "d2/testdata/d2parser/TestParse/field_line_continuation.d2,5:2:45-8:17:71",
    43            "path": [
    44              {
    45                "unquoted_string": {
    46                  "range": "d2/testdata/d2parser/TestParse/field_line_continuation.d2,5:2:45-8:17:71",
    47                  "value": [
    48                    {
    49                      "string": "xd ok does it work",
    50                      "raw_string": "xd ok does it work"
    51                    }
    52                  ]
    53                }
    54              }
    55            ]
    56          },
    57          "primary": {},
    58          "value": {
    59            "unquoted_string": {
    60              "range": "d2/testdata/d2parser/TestParse/field_line_continuation.d2,8:19:73-8:28:82",
    61              "value": [
    62                {
    63                  "string": "hopefully",
    64                  "raw_string": "hopefully"
    65                }
    66              ]
    67            }
    68          }
    69        }
    70      }
    71    ]
    72  },
    73  "err": null
    74}

View as plain text