Anmol Sethi
1217ff35a7
d2ir: Add single glob matching to edges and make it work fully recursively
2023-07-29 16:57:25 -07:00
Anmol Sethi
359976e5d4
d2ir: Add single level field glob patterns
2023-07-29 16:57:25 -07:00
Alexander Wang
98f79e2ba5
arrays
2023-07-12 22:20:55 -07:00
Alexander Wang
b193b9be8a
cleanup
2023-07-11 13:44:00 -07:00
Alexander Wang
c9793b9a87
label works
2023-07-10 19:24:21 -07:00
Anmol Sethi
dc1536e8fb
d2format: path.Clean imports
2023-06-09 19:31:57 -07:00
Anmol Sethi
a5d3cc1429
d2parser: Parse and format @../file imports correctly
2023-06-06 16:15:01 -07:00
Anmol Sethi
35bf5d2c41
d2parser: Fix non file map range not including last brace
2023-06-06 15:48:14 -07:00
Anmol Sethi
0300b81c31
d2parser: Strip leading ./ from imports
2023-06-06 14:52:54 -07:00
Anmol Sethi
bc8f180055
d2parser: Error on unquoted strings starting with ...@
2023-06-06 14:47:40 -07:00
Anmol Sethi
b4d5bc0be1
d2parser: Error on leading @ in non import key strings
2023-06-06 14:06:59 -07:00
Anmol Sethi
10c6d2af71
d2parser: Fix bad import key panic
2023-06-06 14:01:32 -07:00
Anmol Sethi
9f0c24f5d7
fmt
2023-06-04 23:32:14 -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
Anmol Sethi
f61409cb79
d2parser: Allow passing in ParseError for nicer error messages in imports
2023-06-04 23:31:18 -07:00
Anmol Sethi
c325e94cad
d2parser: Allow .d2 extension on quoted import strings
2023-05-30 15:56:01 -07:00
Anmol Sethi
89e1e324d7
d2parser: Add imports support
...
Includes rewriting @file.d2 to @file
2023-05-30 15:44:35 -07:00
Anmol Sethi
e6b52a357f
d2parser: Pass whitespace_range test
...
Closes #1279
2023-05-05 09:18:25 -07:00
Alexander Wang
ddd997e3f0
add md block info
2023-04-29 20:45:03 -07:00
Anmol Sethi
84cc463ff6
d2parser: Fix #322
2023-03-30 01:29:59 -07:00
Gavin Nishizawa
8fe2eee56d
lint
2023-03-14 11:20:00 -07:00
Anmol Sethi
748557d8f2
d2ir: IR Root wip
2023-01-24 03:24:24 -08:00
Anmol Sethi
473d5ba582
d2ir: IR Root wip
2023-01-24 03:24:15 -08:00
Anmol Sethi
83ef53dc40
d2ir: wip
2023-01-24 02:57:32 -08:00
Anmol Sethi
a05ba67a36
go2: rm -rf
2022-12-01 10:49:15 -08:00
Alexander Wang
524c089a74
oss
...
Co-authored-by: Anmol Sethi <hi@nhooyr.io>
2022-11-03 06:54:49 -07:00