diff options
author | Kevin Newton <[email protected]> | 2024-07-01 10:28:52 -0400 |
---|---|---|
committer | git <[email protected]> | 2024-07-01 14:42:10 +0000 |
commit | 8fb2227205c7c5c258bac0c3a721fa6916dd4c1e (patch) | |
tree | 1f730fe0c0668b22e7c415c163ea0d820133afd4 /prism/regexp.h | |
parent | 30a8dbc861a03d881b7f058cd1a111c1222b66d6 (diff) |
[ruby/prism] Properly support parsing regexp in extended mode
https://github.com/ruby/prism/commit/bedc4585ed
Diffstat (limited to 'prism/regexp.h')
-rw-r--r-- | prism/regexp.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/prism/regexp.h b/prism/regexp.h index 42bc504107..c0b3163e93 100644 --- a/prism/regexp.h +++ b/prism/regexp.h @@ -32,11 +32,12 @@ typedef void (*pm_regexp_error_callback_t)(const uint8_t *start, const uint8_t * * @param parser The parser that is currently being used. * @param source The source code to parse. * @param size The size of the source code. + * @param extended_mode Whether to parse the regular expression in extended mode. * @param name_callback The optional callback to call when a named capture group is found. * @param name_data The optional data to pass to the name callback. * @param error_callback The callback to call when a parse error is found. * @param error_data The data to pass to the error callback. */ -PRISM_EXPORTED_FUNCTION void pm_regexp_parse(pm_parser_t *parser, const uint8_t *source, size_t size, pm_regexp_name_callback_t name_callback, void *name_data, pm_regexp_error_callback_t error_callback, void *error_data); +PRISM_EXPORTED_FUNCTION void pm_regexp_parse(pm_parser_t *parser, const uint8_t *source, size_t size, bool extended_mode, pm_regexp_name_callback_t name_callback, void *name_data, pm_regexp_error_callback_t error_callback, void *error_data); #endif |