-
Notifications
You must be signed in to change notification settings - Fork 254
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
HAML AST Scanner #465
Comments
Neat, but does this approach provide the correct line numbers and support |
@cantin can you try to add tests similar to https://github.com/glebm/i18n-tasks/blob/main/spec/used_keys_erb_spec.rb which I added for the AST-scanner for ERB? |
Hey, @glebm, thanks for the reply. So far in my test the line numbers are correct because the compiled content contains exact same line breaks. |
Hey @davidwessman ,thanks for the reply. Nice spec, I'll look into it. |
The HAML provides a method to return the precompiled content which is literally Ruby code. We can use it with the Ruby AST scanner to parse the HAML templates.
Does it make sense to you?
Is it good to merge in as a default HAML scanner? Or put it on the Wiki?
The text was updated successfully, but these errors were encountered: