Commit graph

8 commits

Author SHA1 Message Date
Alexander Wang
21d2c44413
set wip 2023-06-20 18:56:03 -07:00
Anmol Sethi
1f891a3c9e
d2ir: Fix for windows
Closes #1388
2023-06-09 19:45:31 -07:00
Anmol Sethi
47018488aa
d2ir: Fix pushImportStack 2023-06-06 17:14:49 -07:00
Anmol Sethi
a5d3cc1429
d2parser: Parse and format @../file imports correctly 2023-06-06 16:15:01 -07:00
Anmol Sethi
de0a863e9f
d2: Fix nested import spread ghost container bug 2023-06-06 15:09:27 -07:00
Anmol Sethi
111759f6bd
d2cli: Pass path for imports correctly 2023-06-06 13:44:41 -07:00
Anmol Sethi
ad21f1fbea
d2ir: Add more import error tests 2023-06-06 13:17:29 -07:00
Anmol Sethi
2fcc9ed140
d2ir: Compile imports
Works as so:

index.d2:
```d2
x: @x
```

x.d2:
```d2
label: meow
shape: circle
```

TODO:

- [ ] Correctly import into fields by handling the scenarios/steps overlay.
      - And links.
- [ ] Test every kind of import.
2023-06-04 23:31:18 -07:00