editor: Match invisible character ranges directly (#62708)

Local benchmark shows this speeds it up by at least 30% and is
definitely more reasonable to have like this than compared to iterating
over a list for every given char.

Release Notes:

- N/A
f543a7642dFinn Evers committed on 8/16/2026, 1:40:29 PM· committed by GitHubparentbc6095f
1 file changedLine totals unavailable