Translations: support context

This commit is contained in:
Olivier Goffart 2023-06-06 12:21:10 +02:00 committed by Olivier Goffart
parent 0eab14139e
commit e97a2e8229
9 changed files with 75 additions and 10 deletions

View file

@ -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]`