cosmetic changes

This commit is contained in:
Dmitriy Pleshevskiy 2022-12-07 23:22:40 +03:00
parent 2871ceb718
commit ec5fa08c7c
Signed by: pleshevskiy
GPG Key ID: 1B59187B161C0215
3 changed files with 88 additions and 19 deletions

76
test/corpus/container.txt Normal file
View File

@ -0,0 +1,76 @@
================================================================================
Declare a shape inside a container
================================================================================
foo.baz
--------------------------------------------------------------------------------
(source_file
(shape_key) (dot) (shape_key)
)
================================================================================
Use quoted string as a shape key
================================================================================
'foo'.'baz'
--------------------------------------------------------------------------------
(source_file
(shape_key (string)) (dot) (shape_key (string))
)
================================================================================
Declare container inside a container using block
================================================================================
foo: {
bar: {
baz: {
biz
}
}
}
--------------------------------------------------------------------------------
(source_file
(shape_key)
(block
(shape_key)
(block
(shape_key)
(block
(shape_key)
)
)
)
)
================================================================================
Declare labaled container inside a labeled container using block
================================================================================
foo: Foo {
bar: Bar {
baz: Baz {
biz: Biz
}
}
}
--------------------------------------------------------------------------------
(source_file
(shape_key) (label)
(block
(shape_key) (label)
(block
(shape_key) (label)
(block
(shape_key) (label)
)
)
)
)

View File

@ -1,5 +1,5 @@
================================================================================
Simple shape
Simple shape key
================================================================================
foo
bar
@ -12,7 +12,7 @@ bar
)
================================================================================
Complex identifier
Complex shape key
================================================================================
Foo bar
-Biz-baz-
@ -24,26 +24,15 @@ Complex identifier
(shape_key)
)
================================================================================
Declare a shape inside a container
================================================================================
foo.baz
--------------------------------------------------------------------------------
(source_file
(shape_key) (dot) (shape_key)
)
================================================================================
Use quoted string as a shape key
================================================================================
'foo'.'baz'
'foo'
--------------------------------------------------------------------------------
(source_file
(shape_key (string)) (dot) (shape_key (string))
(shape_key (string))
)
================================================================================
@ -60,7 +49,7 @@ a;b;c
)
================================================================================
Aliased shapes
Labeled shapes
================================================================================
a: Foo Bar
a: Foo Bar; b: Biz Baz

View File

@ -1,7 +1,11 @@
foo.baz.biz
foo.'baz'.biz
# <- variable
# ^ variable
# ^ variable
# ^ string
# ^ variable
'biz': 'Baz'
# <- string
# ^ string
foo: Foo Bar
# <- variable