fix definition many shapes inside a container
This commit is contained in:
parent
90bb1822c1
commit
9693327741
4 changed files with 22 additions and 7 deletions
|
@ -96,9 +96,7 @@ module.exports = grammar({
|
|||
seq(
|
||||
spaces,
|
||||
"{",
|
||||
repeat(
|
||||
choice($._emptyline, seq(spaces, $._shape_block_definition, $._end))
|
||||
),
|
||||
repeat(choice($._emptyline, seq(spaces, $._shape_block_definition))),
|
||||
optional(seq($._shape_block_definition, optional($._end))),
|
||||
spaces,
|
||||
"}"
|
||||
|
|
|
@ -527,10 +527,6 @@
|
|||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "_shape_block_definition"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "_end"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
BIN
src/parser.c
BIN
src/parser.c
Binary file not shown.
|
@ -74,3 +74,24 @@ foo: Foo {
|
|||
)
|
||||
)
|
||||
|
||||
================================================================================
|
||||
Declare many shapes inside a container
|
||||
================================================================================
|
||||
|
||||
foo: {
|
||||
bar
|
||||
biz
|
||||
baz
|
||||
}
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
(source_file
|
||||
(shape_key)
|
||||
(block
|
||||
(shape_key)
|
||||
(shape_key)
|
||||
(shape_key)
|
||||
)
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue