mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 18:58:36 +00:00
Translations: support context
This commit is contained in:
parent
0eab14139e
commit
e97a2e8229
9 changed files with 75 additions and 10 deletions
|
@ -368,7 +368,9 @@ declare_syntax! {
|
|||
/// `@linear-gradient(...)` or `@radial-gradient(...)`
|
||||
AtGradient -> [*Expression],
|
||||
/// `@tr("foo", ...)` // the string is a StringLiteral
|
||||
AtTr -> [*Expression],
|
||||
AtTr -> [?TrContext, *Expression],
|
||||
/// `"foo" =>` in a `AtTr` node
|
||||
TrContext -> [],
|
||||
/// expression()
|
||||
FunctionCallExpression -> [*Expression],
|
||||
/// `expression[index]`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue