asm89 / twig-lint

Standalone twig linter.
MIT License
118 stars 32 forks source link

"is divisible by" not working #25

Open RomuloVitoi opened 8 years ago

RomuloVitoi commented 8 years ago

{% if loop.index is divisible by(4) %} Unexpected token "name" of value "by" ("end of statement block" expected).

http://twig.sensiolabs.org/doc/tests/divisibleby.html

sarahjean commented 7 years ago

There is an unmerged PR that looks like it addresses this issue https://github.com/asm89/twig-lint/pull/23

asm89 commented 3 years ago

Is this still an issue? If yes we could/should look at bringing back #23.

AntoineTesson commented 2 years ago

Yes always {% if i is divisible by(14) %}

Unexpected token "name" of value "by" ("end of statement block" expected)