Add support for CSS styles

This commit is contained in:
James Westman 2021-10-23 00:59:10 -05:00
parent 75a05fe5ce
commit bef92f2879
No known key found for this signature in database
GPG key ID: CE2DBA0ADB654EA6
4 changed files with 73 additions and 2 deletions

View file

@ -137,11 +137,27 @@ def parse(tokens) -> ast.UI:
)
)
style = Group(
ast.Style,
Sequence(
Keyword("style"),
Delimited(
Group(
ast.StyleClass,
UseQuoted("name")
),
Comma(),
),
StmtEnd(),
)
)
object_content = Group(
ast.ObjectContent,
Sequence(
OpenBlock(),
ZeroOrMore(AnyOf(
style,
property,
binding,
signal,