ruby/lib/prism
Kevin Newton 23beceedb7 [ruby/prism] IndexTargetNode should always have ATTRIBUTE_WRITE
Because this is a user-facing change, we also need to deal with the
fact that CRuby 3.3.0 was just released.

In order to support workflows that want to parse exactly as CRuby
parses in a specific version, this PR introduces a new option to
the options struct that is "version". This allows you to specify
that you want "3.3.0" parsing.

I'm not sure if this is the correct solution. Another solution is
to just fork and keep around the old branch for security patches.
Or we could keep around a copy of the source files within this
repository as another directory and only update when necessary.
There are a lot of potential solutions here.

Because this change is so small and the check for it is so minimal,
I've decided to go with this enum. If this ends up entirely
cluttering the codebase with version checks, we'll come up with
another solution. But for now this works, so we're going to go in
this direction for a bit until we determine it's no longer working.

https://github.com/ruby/prism/commit/d8c7e6bd10
2024-01-02 18:51:18 +00:00
..
parse_result [ruby/prism] More Ruby docs 2023-11-01 13:10:29 -04:00
debug.rb [ruby/prism] Change numbered parameters 2023-12-01 12:03:09 -05:00
desugar_compiler.rb [ruby/prism] Move flag position consistently to front 2023-12-06 20:50:02 +00:00
ffi.rb [ruby/prism] IndexTargetNode should always have ATTRIBUTE_WRITE 2024-01-02 18:51:18 +00:00
lex_compat.rb [ruby/prism] Fix comments after HEREDOCs again. 2023-12-01 15:17:20 +00:00
node_ext.rb [ruby/prism] Provide heredoc? queries 2023-12-01 18:46:52 +00:00
node_inspector.rb [ruby/prism] More Ruby docs 2023-11-01 13:10:29 -04:00
pack.rb [ruby/prism] Finish Ruby documentation 2023-11-01 13:10:29 -04:00
parse_result.rb [ruby/prism] Move DATA parsing into its own parse result field 2023-11-28 13:25:48 +00:00
pattern.rb [ruby/prism] More Ruby docs 2023-11-01 13:10:29 -04:00
prism.gemspec Bump prism to version 0.19.0 2023-12-14 15:06:09 -05:00
ripper_compat.rb [ruby/prism] Ripper compat docs update 2023-12-04 17:00:14 +00:00