summaryrefslogtreecommitdiff
path: root/prism/regexp.h
diff options
context:
space:
mode:
authorKevin Newton <[email protected]>2024-06-04 12:11:25 -0400
committerKevin Newton <[email protected]>2024-06-05 14:40:03 -0400
commit65746055b4d2c16b68e559cde327889f91f0d516 (patch)
tree96214f846c420972ca0fe47a8715c7636e84c7b4 /prism/regexp.h
parentac70dd07e68384bf5e271dae7e8f08e7a64df1a1 (diff)
[ruby/prism] Pass prism parser into regexp parser
https://github.com/ruby/prism/commit/c19b0fa185
Diffstat (limited to 'prism/regexp.h')
-rw-r--r--prism/regexp.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/prism/regexp.h b/prism/regexp.h
index 7245cbd34e..d401d1e06a 100644
--- a/prism/regexp.h
+++ b/prism/regexp.h
@@ -24,14 +24,13 @@ typedef void (*pm_regexp_name_callback_t)(const pm_string_t *name, void *data);
/**
* Parse a regular expression.
*
+ * @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 encoding_changed Whether or not the encoding changed from the default.
- * @param encoding The encoding of the source code.
* @param name_callback The callback to call when a named capture group is found.
* @param name_data The data to pass to the name callback.
* @return Whether or not the parsing was successful.
*/
-PRISM_EXPORTED_FUNCTION bool pm_regexp_parse(const uint8_t *source, size_t size, bool encoding_changed, const pm_encoding_t *encoding, pm_regexp_name_callback_t name_callback, void *name_data);
+PRISM_EXPORTED_FUNCTION bool pm_regexp_parse(pm_parser_t *parser, const uint8_t *source, size_t size, pm_regexp_name_callback_t name_callback, void *name_data);
#endif