Commit Graph

39 Commits

Author SHA1 Message Date
Dmitriy Pleshevskiy 16d8b4c5f7
remove unnecessary choice 2022-12-10 23:09:11 +03:00
Dmitriy Pleshevskiy 5eb0507baa
Add support of any escape character in text block
See more here https://github.com/terrastruct/d2/issues/420
2022-12-10 22:56:41 +03:00
Dmitriy Pleshevskiy 24cdec0cb3
improve strings and scanner for text block 2022-12-10 05:23:27 +03:00
Dmitriy Pleshevskiy 84103fee37
fix available characters in the identifier 2022-12-09 23:56:54 +03:00
Dmitriy Pleshevskiy 3c622036f6
remove invalid string quote 2022-12-09 22:31:39 +03:00
Dmitriy Pleshevskiy b3a382ff5b
add primitive types 2022-12-09 18:49:33 +03:00
Dmitriy Pleshevskiy 99d9fbbf63
add language injections
Closes #6
2022-12-09 18:21:55 +03:00
Dmitriy Pleshevskiy d230155d48
add text block
Closes #3
2022-12-09 16:09:10 +03:00
Dmitriy Pleshevskiy 612b7fb871
fix unquoted strings and identifiers 2022-12-09 15:02:21 +03:00
Dmitriy Pleshevskiy 6ec0bb5c59
add attributes for connections
Closes #5
2022-12-09 14:09:39 +03:00
Dmitriy Pleshevskiy 095dd7d8f3
handle end of file
Closes #1
2022-12-09 12:54:11 +03:00
Dmitriy Pleshevskiy be8db7ca48 Add structure for container and shapes (#1)
![image](/attachments/5bf879cc-b94c-414e-b69b-92cbc018671e)

Co-authored-by: Dmitriy Pleshevskiy <dmitriy@ideascup.me>
Reviewed-on: #1
2022-12-09 12:36:31 +03:00
Dmitriy Pleshevskiy 9693327741
fix definition many shapes inside a container 2022-12-08 02:09:04 +03:00
Dmitriy Pleshevskiy 90bb1822c1
fix comment in string 2022-12-08 02:04:36 +03:00
Dmitriy Pleshevskiy 7d4799f08a
add highlight tests for connections 2022-12-08 01:37:35 +03:00
Dmitriy Pleshevskiy 8921cc8bbc
use regex for arrow to fix long arrow bug 2022-12-08 01:30:23 +03:00
Dmitriy Pleshevskiy 6835da6d3c
add container key 2022-12-08 01:15:09 +03:00
Dmitriy Pleshevskiy 2871ceb718
add support of shape path 2022-12-07 23:14:25 +03:00
Dmitriy Pleshevskiy 867ed6662b
add invalid attributes 2022-12-07 18:52:19 +03:00
Dmitriy Pleshevskiy b539703965
add comments 2022-12-07 12:09:27 +03:00
Dmitriy Pleshevskiy bbbb253d22
add emptyline rule 2022-12-06 12:40:18 +03:00
Dmitriy Pleshevskiy e7421caac0
add shape block 2022-12-06 12:32:50 +03:00
Dmitriy Pleshevskiy 41e2ce2e57
add style attr block 2022-12-06 11:57:59 +03:00
Dmitriy Pleshevskiy 7a76b25c11
chore: remove trailing spaces from identifier 2022-12-06 10:32:04 +03:00
Dmitriy Pleshevskiy 811520dfd4
support empty lines 2022-12-06 00:53:06 +03:00
Dmitriy Pleshevskiy 78fe65f822
cosmetic changes 2022-12-06 00:34:41 +03:00
Dmitriy Pleshevskiy a1bf1367fb
remove extras 2022-12-05 11:36:14 +03:00
Dmitriy Pleshevskiy acf249ef24
add connection attributes 2022-12-05 10:37:04 +03:00
Dmitriy Pleshevskiy fcc6316ba1
simplify the connection rule 2022-12-05 10:33:49 +03:00
Dmitriy Pleshevskiy c3be4d43cc
cosmetic changes 2022-12-05 10:09:14 +03:00
Dmitriy Pleshevskiy 975e4c299a
fix multi inline shape attrs 2022-12-05 00:26:24 +03:00
Dmitriy Pleshevskiy 2bd0ded807
add all keywords 2022-12-04 23:45:53 +03:00
Dmitriy Pleshevskiy 949e58bb56
add basic keywords 2022-12-04 18:35:50 +03:00
Dmitriy Pleshevskiy fc5a0fff47
rewrite identifier as regular scanner 2022-12-04 18:35:37 +03:00
Dmitriy Pleshevskiy 8fcd012702
add inline identifiers 2022-12-04 03:36:46 +03:00
Dmitriy Pleshevskiy c6fc30e53d
add label to connection 2022-12-04 03:25:38 +03:00
Dmitriy Pleshevskiy 558206b641
add inline connection 2022-12-04 03:21:42 +03:00
Dmitriy Pleshevskiy a5059fd3de
fix identifier scanner 2022-12-04 03:13:40 +03:00
Dmitriy Pleshevskiy a2a7925e3b
initial commit 2022-12-04 00:07:26 +03:00