Currently, html2haml internally uses RubyParser.new to parse interpolated Ruby code. For instance, it uses Ruby 3.1 syntax parser as of today, regardless of the actual Ruby version of the user's current project.
Instead, it'd be natural to use the parser for currently running Ruby version.
Currently, html2haml internally uses
RubyParser.new
to parse interpolated Ruby code. For instance, it uses Ruby 3.1 syntax parser as of today, regardless of the actual Ruby version of the user's current project.Instead, it'd be natural to use the parser for currently running Ruby version.