summaryrefslogtreecommitdiff
path: root/prism
diff options
context:
space:
mode:
authorKevin Newton <[email protected]>2024-12-21 15:15:32 -0500
committerKevin Newton <[email protected]>2025-01-11 19:09:05 -0500
commitb79152fd22f1acb4c984ca205e2de4f5f6291e90 ()
tree5ecd515557ce3905eea7b369e5d2e69de2b3847a /prism
parent76b620b341b54eb80028f03cc828333defacc87e (diff)
[ruby/prism] Support 3.5 for version option
https://.com/ruby/prism/commit/6b6aa05bfb
-rw-r--r--prism/options.c10
-rw-r--r--prism/options.h5
2 files changed, 14 insertions, 1 deletions
@@ -84,6 +84,11 @@ pm_options_version_set(pm_options_t *options, const char *version, size_t length
}
if (strncmp(version, "3.4", 3) == 0) {
options->version = PM_OPTIONS_VERSION_LATEST;
return true;
}
@@ -98,6 +103,11 @@ pm_options_version_set(pm_options_t *options, const char *version, size_t length
}
if (strncmp(version, "3.4.", 4) == 0 && is_number(version + 4, length - 4)) {
options->version = PM_OPTIONS_VERSION_LATEST;
return true;
}
@@ -68,7 +68,10 @@ typedef enum {
PM_OPTIONS_VERSION_LATEST = 0,
/** The vendored version of prism in CRuby 3.3.x. */
- PM_OPTIONS_VERSION_CRUBY_3_3 = 1
} pm_options_version_t;
/**