[PRISM] Turn off mismatched indentation warnings in eval

Fixes [Bug #20732]
This commit is contained in:
Kevin Newton 2024-09-13 11:25:57 -04:00
parent 353997dd3e
commit 74f315c3f5
Notes: git 2024-09-13 16:09:14 +00:00

View File

@ -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);