mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Fix flag syntax
Unlike commas, no trailing "|" is allowed.
This commit is contained in:
parent
8874cf60b3
commit
0f5f08ade9
1 changed files with 2 additions and 2 deletions
|
@ -221,7 +221,7 @@ class Flag(AstNode):
|
||||||
|
|
||||||
|
|
||||||
class Flags(AstNode):
|
class Flags(AstNode):
|
||||||
grammar = [Flag, "|", Delimited(Flag, "|")]
|
grammar = [Flag, "|", Flag, ZeroOrMore(["|", Flag])]
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def flags(self) -> T.List[Flag]:
|
def flags(self) -> T.List[Flag]:
|
||||||
|
@ -327,5 +327,5 @@ class Value(AstNode):
|
||||||
@property
|
@property
|
||||||
def child(
|
def child(
|
||||||
self,
|
self,
|
||||||
) -> T.Union[PropertyBinding, Binding, Translated, ObjectValue, Flags, Literal,]:
|
) -> T.Union[PropertyBinding, Binding, Translated, ObjectValue, Flags, Literal]:
|
||||||
return self.children[0]
|
return self.children[0]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue