Alexander Wang
5457b02e69
d2ir: fix imported glob leaf filter
2025-04-16 05:41:09 -07:00
Alexander Wang
1acd6ef34a
fix
2025-04-03 19:52:41 -06:00
Alexander Wang
b070ab6696
account for non-unix filepaths
2024-09-27 14:07:23 -06:00
Alexander Wang
5df045ca78
d2ir: allow absolute imports
2024-09-27 14:07:18 -06:00
Alexander Wang
24f9150091
d2ir: fix importing scopes
2024-09-23 06:54:54 -06:00
Alexander Wang
4e93f70db3
d2ir/imports: fix removing parent scope of nested import fields/edges
2024-09-11 11:26:33 -06:00
Alexander Wang
26fd14455d
d2ir: fix substitutions in imports
2024-04-17 15:59:12 -07:00
Alexander Wang
6272d3e8b1
fix bad import syntax edge case
2024-02-05 14:11:45 -08:00
Alexander Wang
7045eb9b6e
amend
2023-12-24 22:40:35 -08:00
Anmol Sethi
976ec17476
d2ir: Prevent globs from overriding any fields set by non globs
2023-08-30 00:37:03 -07:00
Anmol Sethi
203953723e
d2parser: Autodetect UTF-16 based on BOM
...
Turns out I was wrong this is safe.
2023-08-02 11:10:24 -07:00
Anmol Sethi
b81da1ee62
d2parser: Support reading utf16 files
2023-08-02 09:56:35 -07:00
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