summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Newton <[email protected]>2024-09-13 11:25:57 -0400
committerKevin Newton <[email protected]>2024-09-13 12:08:56 -0400
commit74f315c3f5908512dfdeeab2dd76d93e98149769 (patch)
tree8c1ee27dcdec06b5c9268e238f3a8e7ac7514137
parent353997dd3ee8d437113a3e9b5e85ef850adbf31d (diff)
[PRISM] Turn off mismatched indentation warnings in eval
Fixes [Bug #20732]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/11618
-rw-r--r--prism/prism.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/prism/prism.c b/prism/prism.c
index b3d843e672..3409af47e7 100644
--- a/prism/prism.c
+++ b/prism/prism.c
@@ -21926,6 +21926,7 @@ pm_parser_init(pm_parser_t *parser, const uint8_t *source, size_t size, const pm
// scopes option
parser->parsing_eval = options->scopes_count > 0;
+ if (parser->parsing_eval) parser->warn_mismatched_indentation = false;
for (size_t scope_index = 0; scope_index < options->scopes_count; scope_index++) {
const pm_options_scope_t *scope = pm_options_scope_get(options, scope_index);