diff options
| author | qhukz13 <v.onashchuk@gmail.com> | 2026-11-24 15:11:57 +0200 |
|---|---|---|
| committer | qhukz13 <v.onashchuk@gmail.com> | 2026-11-24 16:01:45 +0200 |
| commit | ea10ffd572c9af0298a98f6427209e2bde402b7c (patch) | |
| tree | 5c9b6da001bd8c1ac11147451e857a59d11af2dd /runtime/src/thread_stacks.cpp | |
| parent | dc2931044b0cf89bccab7c149b0fcda99cb4cc99 (diff) | |
semantic_mutants: a """ in a comment and adjacent string literals no longer hide or split a docstring
Review on #660 (lixonik): a comment holding `"""` before a docstring flipped the delimiter count, so a --lines range
inside the docstring was mutated as code, and a docstring written as adjacent literals ("a " "b") was not recognised.
Follow triple-quote delimiters with a small scanner that skips comments, one-line strings and escaped delimiters,
and take a run of adjacent string tokens ending the statement as one docstring. A literal that is read by the code
after it stays code.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/thread_stacks.cpp')
0 files changed, 0 insertions, 0 deletions