Alexander Wang
a0c4da1bce
d2parser: escape backslashes for latex
2024-11-24 12:52:03 -08:00
Alexander Wang
30d74384ae
allow pattern globs in values
2024-07-18 16:05:49 -06:00
Alexander Wang
5c6a94a6ca
compiler: Fix compiler errors of keys in globs
2023-10-31 15:55:25 -07:00
Gavin Nishizawa
15a3075690
fix
2023-09-22 20:01:31 -07:00
Anmol Sethi
387c33660f
d2parser: Add not ampersand support
...
See #1567
2023-08-30 00:02:52 -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
Anmol Sethi
6b73a61bd2
d2ir: Add filter error tests
2023-07-30 12:41:29 -07:00
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
Anmol Sethi
fa5eced013
d2parser: Update whitespace range test
...
To include leading and trailing whitespace
2023-05-05 09:18:25 -07:00
Anmol Sethi
10fab9c09c
d2parser: Add test for leading whitespace bug
...
Updates #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
1e3cb397a9
testdata: Add a few parse tests and cleanup testdata
...
Updates #955
Updates #322
2023-03-13 15:28:53 -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
d116889fc9
Switch fully to util-go
2022-12-01 11:48:49 -08:00
Anmol Sethi
a05ba67a36
go2: rm -rf
2022-12-01 10:49:15 -08:00
Anmol Sethi
6a71aa02bc
Fix trailing whitespace
...
cc @gavin-ts
2022-11-28 10:44:18 -08:00
Alexander Wang
524c089a74
oss
...
Co-authored-by: Anmol Sethi <hi@nhooyr.io>
2022-11-03 06:54:49 -07:00