edit_prediction: Fix special token check matching `=======` inside comments (#52510)

Closes #52489

The special token check in `prompt_input_contains_special_tokens` used
`String::contains()` to look for `=======\n` in the buffer. This meant
any line containing `=======` (like `// =======` section separators)
would cause edit predictions to bail out entirely.

Fixed by only matching when the token appears at the start of a line,
since the git merge markers are always placed at line boundaries in the
prompt.

Added tests for both the helper function and a regression test for the
reported issue.

---------

Co-authored-by: Oleksiy Syvokon <oleksiy.syvokon@gmail.com>
56104fb17eShiven Garia committed on 3/31/2026, 5:50:49 PM· committed by GitHubparent3ed687d
1 file changedLine totals unavailable