Fix crashes when fmt directives are indented (#4856)
* Use `_contains_fmt_directive` everywhere Signed-off-by:cobalt <61329810+cobaltt7@users.noreply.github.com> * Remove underscore prefix Signed-off-by:
cobalt <61329810+cobaltt7@users.noreply.github.com> * Add tests Signed-off-by:
cobalt <61329810+cobaltt7@users.noreply.github.com> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * update changelog Signed-off-by:
cobalt <61329810+cobaltt7@users.noreply.github.com> * Remove duplicate tests * fix `visit_STANDALONE_COMMENT`'s `is_fmt_off_block` check Signed-off-by:
cobalt <61329810+cobaltt7@users.noreply.github.com> * Prevent wrapping when comments are in arrays Signed-off-by:
cobalt <61329810+cobaltt7@users.noreply.github.com> --------- Signed-off-by:
cobalt <61329810+cobaltt7@users.noreply.github.com> Co-authored-by:
pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Loading
Please register or sign in to comment