You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can see KW_SET_TAG is already there in lib/rewrite/rewrite-expr-grammar.ym.
Can you give me a brief idea about what enhancement is required for set-tag() ?
Some rewrite rules already accept a condition option. Though set-tag does not accept it yet. In the meantime, grammar level if statement was introduced, that can cover this use case as well.
Still, I think set-tag("tag" condition(filter-expression)); is a neat syntax, and I would happy to see it implemented.
With a little code reorganization and a well placed rewrite_condition_opt in the grammar, this can work.
It would be nice to have this in our toolbox, together with conditional
set()
.Cheers
The text was updated successfully, but these errors were encountered: