Commit graph

260 commits

Author SHA1 Message Date
Alexander Wang
9fce113619
tests 2023-06-20 18:58:04 -07:00
Alexander Wang
a1df49c21e
cleanup 2023-06-20 18:56:04 -07:00
Alexander Wang
1a9d1ffefb
basic move 2023-06-20 18:56:03 -07:00
Alexander Wang
975b27f2eb
basic delete 2023-06-20 18:56:03 -07:00
Alexander Wang
05f1f6005e
fix primary setting 2023-06-20 18:56:03 -07:00
Alexander Wang
21d2c44413
set wip 2023-06-20 18:56:03 -07:00
Alexander Wang
b2cb2d15ac
more tests 2023-06-20 18:56:02 -07:00
Alexander Wang
a25f418c12
new implementation 2023-06-20 18:56:02 -07:00
Alexander Wang
3aed9f59c9
use baseAST, add basic tests 2023-06-20 18:56:02 -07:00
Alexander Wang
c790ddd172
fix 2023-06-18 11:19:37 -07:00
Alexander Wang
77911aa313
Merge pull request #1414 from alixander/board-ast
use right AST for nested board
2023-06-17 22:22:57 -07:00
Alexander Wang
b30f9702bd
fix shape composite 2023-06-16 16:50:16 -07:00
Alexander Wang
64daf4643f
use right AST 2023-06-16 16:23:57 -07:00
Alexander Wang
8b8afb2638
fix idval edge case 2023-06-12 11:26:51 -07:00
Gavin Nishizawa
324a38d285
update test 2023-06-09 14:11:56 -07:00
Alexander Wang
a283e619bb
prevent bad constraint usage 2023-06-08 11:07:46 -07:00
Alexander Wang
538812f928
Merge branch 'master' into imports 2023-06-07 15:38:52 -07:00
Alexander Wang
424f671d54
add test exercising steps/scenarios 2023-06-06 22:52:17 -07:00
Anmol Sethi
986f069c18
d2ir: Fix link paths to be unquoted strings
Allows for simpler manipulation.
2023-06-06 22:37:56 -07:00
Alexander Wang
0d4392eac2
add class array footgun 2023-06-06 20:24:47 -07:00
Anmol Sethi
7f0450121a
d2ir: Handle imported scenarios/steps/links 2023-06-06 16:49:12 -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
de0a863e9f
d2: Fix nested import spread ghost container bug 2023-06-06 15:09:27 -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
42706f8b64
d2ir: More import tests 2023-06-06 13:07:30 -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
satoqz
665844db39
TA=1 2023-06-03 14:05:18 +02:00
Bernard Xie
69b816c1b4
Merge pull request #1364 from berniexie/no-empty-block-strings
compile: no empty block strings
2023-06-02 11:30:08 -07:00
Bernard Xie
cd09aba54f
trim space 2023-06-02 10:42:44 -07:00
Alexander Wang
e6750a99b6
fix renameiddelta 2023-06-01 19:42:40 -07:00
Bernard Xie
1a6b1a4084
add test 2023-06-01 18:48:37 -07:00
Alexander Wang
6d2b77170b
fix arrowhead overriding 2023-06-01 17:11:11 -07:00
Alexander Wang
e998a95b96
d2ir: prevent illegal non-tail keywords 2023-05-31 23:04:09 -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
Alexander Wang
bbc37d74fd
return newkey in rename 2023-05-27 17:21:57 -07:00
Alexander Wang
877ff5d9f2
fix underscore again 2023-05-24 16:14:55 -07:00
Alexander Wang
3afbf724f0
fix 2023-05-16 10:45:35 -07:00
Alexander Wang
503a31e034
fix 2023-05-12 16:18:50 -07:00
gavin-ts
9664fd6b7d
Merge pull request #1309 from gavin-ts/nested-layout
layout with nested grids
2023-05-10 17:29:43 -07:00
Alexander Wang
677a8daa13
fix underscore 2023-05-10 16:27:08 -07:00
Gavin Nishizawa
590a18c8bd
update compile test 2023-05-10 12:57:40 -07:00
Alexander Wang
38d344c626
fix underscore regression 2023-05-10 12:27:08 -07:00
Alexander Wang
5520c0bca6
fix map carry 2023-05-09 17:17:18 -07:00
Alexander Wang
acf239d59a
fix underscores 2023-05-09 14:24:42 -07:00
Alexander Wang
c40fce1483
preserve attr 2023-05-09 12:39:00 -07:00