mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Add support for CSS styles
This commit is contained in:
parent
75a05fe5ce
commit
bef92f2879
4 changed files with 73 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue