Skip to content
Unverified Commit 0f376e0c authored by cobalt's avatar cobalt Committed by GitHub
Browse files

Fix crashes when fmt directives are indented (#4856)



* Use `_contains_fmt_directive` everywhere

Signed-off-by: default avatarcobalt <61329810+cobaltt7@users.noreply.github.com>

* Remove underscore prefix

Signed-off-by: default avatarcobalt <61329810+cobaltt7@users.noreply.github.com>

* Add tests

Signed-off-by: default avatarcobalt <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: default avatarcobalt <61329810+cobaltt7@users.noreply.github.com>

* Remove duplicate tests

* fix `visit_STANDALONE_COMMENT`'s `is_fmt_off_block` check

Signed-off-by: default avatarcobalt <61329810+cobaltt7@users.noreply.github.com>

* Prevent wrapping when comments are in arrays

Signed-off-by: default avatarcobalt <61329810+cobaltt7@users.noreply.github.com>

---------

Signed-off-by: default avatarcobalt <61329810+cobaltt7@users.noreply.github.com>
Co-authored-by: default avatarpre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
parent a8bfcc10
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment