Skip to content
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

parsing PHP files with HTML #7

Open
spagu opened this issue Apr 14, 2018 · 1 comment
Open

parsing PHP files with HTML #7

spagu opened this issue Apr 14, 2018 · 1 comment

Comments

@spagu
Copy link

spagu commented Apr 14, 2018

How can I exclude PHP tags ?
once <?php tag is open then when there is a class->function it uses -> as a closing tag.

I did try

i18n-lint -i "<?php,style,script" -t "<\?php,\?>" file name

but it does not work.

How to prevent it ?

@jwarby
Copy link
Owner

jwarby commented Apr 15, 2018

Hey @spagu, I'm guessing the HTML parser being used (htmlparser2) probably doesn't support this use case :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants