ruby/lib/prism
Earlopain 026079925c [ruby/prism] Do not use 0 to indicate the latest ruby version to parse
This makes it hard to do version checks against this value. The current version checks work because there are so few possible values at the moment.

As an example, PR 3337 introduces new syntax for ruby 3.5 and uses `PM_OPTIONS_VERSION_LATEST` as its version guard. Because what is considered the latest changes every year, it must later be changed to `parser->version == parser->version == PM_OPTIONS_VERSION_CRUBY_3_5 || parser->version == PM_OPTIONS_VERSION_LATEST`, with one extra version each year.

With this change, the PR can instead write `parser->version >= PM_OPTIONS_VERSION_CRUBY_3_5` which is self-explanatory
and works for future versions.

8318a113ca
2025-07-29 17:17:28 +00:00
..
parse_result [ruby/prism] [DOC] Specify markdown mode to RDoc 2025-05-29 04:45:58 +00:00
polyfill [ruby/prism] Fix parser translator during string escaping with invalid utf-8 2025-06-11 18:07:43 +00:00
translation [ruby/prism] Fix parser translator with trailing backslash in %W /%I array 2025-06-30 12:32:31 +00:00
desugar_compiler.rb [ruby/prism] [DOC] Specify markdown mode to RDoc 2025-05-29 04:45:58 +00:00
ffi.rb [ruby/prism] Do not use 0 to indicate the latest ruby version to parse 2025-07-29 17:17:28 +00:00
lex_compat.rb [ruby/prism] [DOC] Specify markdown mode to RDoc 2025-05-29 04:45:58 +00:00
node_ext.rb [ruby/prism] [DOC] Stop rdoc from processing non-rdoc comments 2025-05-29 04:45:59 +00:00
pack.rb [ruby/prism] [DOC] Specify markdown mode to RDoc 2025-05-29 04:45:58 +00:00
parse_result.rb [ruby/prism] [DOC] Specify markdown mode to RDoc 2025-05-29 04:45:58 +00:00
pattern.rb [ruby/prism] [DOC] Specify markdown mode to RDoc 2025-05-29 04:45:58 +00:00
prism.gemspec [ruby/prism] Fix parser translator during string escaping with invalid utf-8 2025-06-11 18:07:43 +00:00
relocation.rb [ruby/prism] [DOC] Specify markdown mode to RDoc 2025-05-29 04:45:58 +00:00
string_query.rb [ruby/prism] [DOC] Specify markdown mode to RDoc 2025-05-29 04:45:58 +00:00
translation.rb [ruby/prism] [DOC] Specify markdown mode to RDoc 2025-05-29 04:45:58 +00:00