asm89/twig-lint

"same as" alias support

Closed this issue · 2 comments

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.

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.

See #2. :)