- Issue created by @pdureau
Lets use range()
function instead of the ..
built-in operator because:
..
is just syntactic sugar for the range()
function. So, 1..items|length
is the same as range(1, items|length)
, but without the possibility of adding a step..
doesn't' exist in Jinja and Nunjucks, but range()
function does.Raise a "Use range() function instead of `..` operator" warning if this is operator is found:
'..' => ['precedence' => 25, 'class' => RangeBinary::class, 'associativity' => ExpressionParser::OPERATOR_LEFT],
Active
2.0
UI Patterns Devel [2.x only]