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