mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 14:21:16 +00:00
Allow to give a name to for
and if
This commit is contained in:
parent
52e85933ed
commit
42c25248a8
8 changed files with 121 additions and 49 deletions
|
@ -323,9 +323,9 @@ declare_syntax! {
|
|||
Element -> [ ?QualifiedName, *PropertyDeclaration, *Binding, *CallbackConnection,
|
||||
*CallbackDeclaration, *SubElement, *RepeatedElement, *PropertyAnimation,
|
||||
*TwoWayBinding, *States, *Transitions, ?ChildrenPlaceholder ],
|
||||
RepeatedElement -> [ ?DeclaredIdentifier, ?RepeatedIndex, Expression , Element],
|
||||
RepeatedElement -> [ ?DeclaredIdentifier, ?RepeatedIndex, Expression , SubElement],
|
||||
RepeatedIndex -> [],
|
||||
ConditionalElement -> [ Expression , Element],
|
||||
ConditionalElement -> [ Expression , SubElement],
|
||||
CallbackDeclaration -> [ DeclaredIdentifier, *Type, ?ReturnType, ?TwoWayBinding ],
|
||||
/// `-> type` (but without the ->)
|
||||
ReturnType -> [Type],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue