Commit 11525b6
fix: correct prev_ok word-boundary check in find_top_level_keyword
abs_pos == from skipped the boundary check for keywords at the scan start
when from > 0. The second branch (text[..abs_pos].chars().next_back()) already
handles abs_pos == 0 correctly via unwrap_or(true), so drop the short-circuit.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent fe13f8c commit 11525b6
1 file changed
Lines changed: 6 additions & 7 deletions
Lines changed: 6 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
230 | 229 | | |
231 | 230 | | |
232 | 231 | | |
| |||
0 commit comments