asm89 / twig-lint

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

"same as" alias support #8

Closed adam187 closed 9 years ago

adam187 commented 10 years ago

Hi,

Linter doesn't recognize same as alias fot sameas test and it throws exception:

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

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

Linter from symfony doesn't throw this error.

asm89 commented 9 years ago

We might have to stub it out.

The linter doesn't load all extensions you use in your project. We might be able to add support for that, but I haven't thought about how yet.

asm89 commented 9 years ago

See #2. :)