Fix off-by-one errors in syntax highlighting (#14780)

In the case that a line ended with a 0-length run, we would get our
highlights offset by one position.

Release Notes:

- Fixed syntax highlights being offset from syntax in diagnostics
popovers.
87457f9ae8Conrad Irwin committed on 7/19/2024, 4:37:30 AM· committed by GitHubparentbe45f32
2 files changedLine totals unavailable