-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix import statement requiring a space afterwards #593
Comments
I was sure it would at least throw a syntax error with TwigPHP but it actually works perfectly: |
Yes, I forgot to mention a fact that PHP Twig parses this properly, sorry |
Example of it not working in twig.js: https://codepen.io/willrowe/pen/VwXMgeo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Twig.js v1.12.0 is failed to properly parse
import
statement in a case if there is no space betweenimport
keyword and filename. Example test file:{% include"test.twig" %}
(notice no space after
include
) gives me:if test file get changed by adding space after
import
:it get parsed successfully.
The text was updated successfully, but these errors were encountered: