summaryrefslogtreecommitdiff
path: root/internal/parse.h
diff options
context:
space:
mode:
authoryui-knk <spiketeika@gmail.com>2022-09-25 17:53:44 +0900
committerYuichiro Kaneko <spiketeika@gmail.com>2022-10-08 17:59:11 +0900
commitfbbdbdd8911ffb24d98bb71c7c33d24609ce7dfe (patch)
tree74e11b409521113dedae0e28e7013a22e61b8c3f /internal/parse.h
parent7775d14356c375536c915ea4bd0fae019acaaeb1 (diff)
downloadruby-fbbdbdd8911ffb24d98bb71c7c33d24609ce7dfe.tar.gz
Add error_tolerant option to RubyVM::AST
If this option is enabled, SyntaxError is not raised and Node is returned even if passed script is broken. [Feature #19013]
Diffstat (limited to 'internal/parse.h')
-rw-r--r--internal/parse.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/parse.h b/internal/parse.h
index d9f5b56bc5..37133827f5 100644
--- a/internal/parse.h
+++ b/internal/parse.h
@@ -15,6 +15,7 @@ struct rb_iseq_struct; /* in vm_core.h */
VALUE rb_parser_set_yydebug(VALUE, VALUE);
void *rb_parser_load_file(VALUE parser, VALUE name);
void rb_parser_keep_script_lines(VALUE vparser);
+void rb_parser_error_tolerant(VALUE vparser);
RUBY_SYMBOL_EXPORT_BEGIN
VALUE rb_parser_set_context(VALUE, const struct rb_iseq_struct *, int);