Skip to content

v1.4.0

Latest
Compare
Choose a tag to compare
@kddnewton kddnewton released this 18 Mar 19:11
· 99 commits to main since this release
1463122

Added

  • Support 3.5 as a version option.
  • Many, many compatibility fixes for the parser translation layer.
  • Handle escapes in named capture names.
  • The freeze option is added to the various Prism:: APIs to deeply freeze the AST.
  • Properly support it for the parser and ruby_parser translation layers.
  • Track the then keyword on rescue nodes.
  • Add a multiple_statements? flag to parentheses nodes to support desired defined? behavior.

Changed

  • The strings used in the AST are now frozen.
  • Fixed handling escaped characters after control sequences in character literals.
  • Fix reading off the end of an unterminated global variable.
  • Raise a syntax error for defining []= with endless method syntax.
  • Increase value of PRISM_DEPTH_MAXIMUM to 10000.
  • Freeze Prism::VERSION.
  • Fix up rescue modifier precedence.