add connection to container block

This commit is contained in:
Dmitriy Pleshevskiy 2022-12-09 09:08:37 +03:00
parent 6032250d6d
commit 1ea16740eb
Signed by: pleshevskiy
GPG Key ID: 1B59187B161C0215
4 changed files with 31 additions and 1 deletions

View File

@ -111,7 +111,7 @@ module.exports = grammar({
_new_container_block_definition: ($) =>
prec(
PREC.CONTAINER,
choice($._eol, seq(choice($.shape, $.container), $._end))
choice($._eol, seq(choice($.shape, $.container, $.connection), $._end))
),
// --------------------------------------------

View File

@ -428,6 +428,10 @@
{
"type": "SYMBOL",
"name": "container"
},
{
"type": "SYMBOL",
"name": "connection"
}
]
},

Binary file not shown.

View File

@ -196,3 +196,29 @@ foo.biz.baz -> bar.baz.biz: Label
(label)
)
)
================================================================================
Connection of shapes inside a block of container
================================================================================
foo.baz: {
foo -> biz: Label
}
--------------------------------------------------------------------------------
(source_file
(container
(container_key) (dot)
(container
(container_key)
(block
(connection
(shape_key)
(arrow)
(shape_key)
(label)
)
)
)
)
)