You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In ERB-template rendered by Rails calls to yield will not raise an error for top-level yield. Probably because Rails compile the templates somehow. When I parse the ruby-code in an ERB-template I parse each tag by itself.
I am using the Ruby-api, SyntaxTree.parse("yield"), would there be anyway to add some support to allow the top-level yield?
Or do I need to wrap all the code I parse or something? That would make formatting much harder.
The text was updated successfully, but these errors were encountered:
Hello, thank you for a great gem!
I am working on https://github.com/davidwessman/syntax_tree-erb and ran into some errors when upgrading to Ruby 3.3.
In ERB-template rendered by Rails calls to
yield
will not raise an error for top-level yield. Probably because Rails compile the templates somehow. When I parse the ruby-code in an ERB-template I parse each tag by itself.This causes errors:
Ruby 3.2.4, syntax_tree 6.2.0
Ruby 3.3.1, syntax_tree 6.2.0
I am using the Ruby-api,
SyntaxTree.parse("yield")
, would there be anyway to add some support to allow the top-level yield?Or do I need to wrap all the code I parse or something? That would make formatting much harder.
The text was updated successfully, but these errors were encountered: