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
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
Alexander Wang
aa7cd3f973
fix sibling conflict
2023-05-08 22:26:13 -07:00
Alexander Wang
0124b68780
fix again
2023-05-08 18:45:36 -07:00
Alexander Wang
49828667f7
min/max
2023-05-08 17:49:04 -07:00
Alexander Wang
bb465277c5
fix move container
2023-05-08 14:32:11 -07:00
Alexander Wang
7301cb3699
tests
2023-05-07 16:10:21 -07:00
Alexander Wang
43b206cde8
move container
2023-05-07 16:09:57 -07:00
Alexander Wang
eb30d8af90
rebase and TA=1
2023-05-05 09:21:28 -07:00
Alexander Wang
e03e19b28b
ta=1
2023-05-05 09:18:25 -07:00
Anmol Sethi
e6b52a357f
d2parser: Pass whitespace_range test
...
Closes #1279
2023-05-05 09:18:25 -07:00
Alexander Wang
db21d350c5
ignore when no params
2023-05-04 20:29:53 -07:00
Alexander Wang
657cdd83cb
more robust
2023-05-04 19:53:53 -07:00
Alexander Wang
60e5a33c8a
implement ReconnectEdge
2023-05-04 19:09:04 -07:00
Alexander Wang
ddd997e3f0
add md block info
2023-04-29 20:45:03 -07:00
Alexander Wang
b08431b73a
Merge pull request #1256 from alixander/class-array
...
implement arrays for classes
2023-04-27 15:21:06 -07:00
Alexander Wang
7c401a4806
implement arrays for classes
...
update
changelog
2023-04-27 15:12:39 -07:00
Alexander Wang
595fafc4c8
fix class
...
style validation
changelog
2023-04-27 11:48:07 -07:00
Alexander Wang
16478fd894
fix classes panic
2023-04-26 12:40:42 -07:00
Alexander Wang
e512d43ec5
fix generate unique number id
2023-04-20 12:27:34 -07:00
Antoine Poivey
760dbfe5ae
merge with master
2023-04-20 16:48:52 +02:00
Alexander Wang
e0b4c09df1
d2oracle: don't modify classes
2023-04-18 20:25:07 -07:00
Gavin Nishizawa
bf50cb9ab3
update tests
2023-04-17 15:03:58 -07:00
Gavin Nishizawa
913c170985
update tests
2023-04-17 13:16:34 -07:00
Gavin Nishizawa
69208ccf19
update tests json .label_dimensions -> .attributes.labelDimensions
2023-04-13 20:13:58 -07:00
Antoine Poivey
b2d0a44e2f
remove border-radius percent tests, add border-radius pill (with a big value) test
2023-04-13 18:18:28 +02:00
Gavin Nishizawa
c0e164e44b
rename to horizontal-gap and vertical-gap
2023-04-12 13:51:04 -07:00
Gavin Nishizawa
e871cee0bb
add compile test
2023-04-10 18:21:39 -07:00
Alexander Wang
70b3dd7b87
add text-transform as keyword
2023-04-08 12:24:29 -07:00
Alexander Wang
305c72d239
implement classes
2023-04-07 09:57:51 -07:00
Alexander Wang
ad880fa9be
Merge pull request #1090 from alixander/scenarios-bug
...
fix scenarios/steps inheritence
2023-04-06 22:27:03 -07:00
donglixiaoche
b2f905efb8
Merge branch 'master' into near-keys-for-container
...
Conflicts:
d2layouts/d2near/layout.go
2023-04-07 10:40:40 +08:00
Gavin Nishizawa
a75d4dd0b9
update keywords rows -> grid-rows
2023-04-06 15:48:01 -07:00