OCamlPro/typerex — Issue #27: Syntax highlighting shifts on long Unicode characters input
Author: Ptival
Created: 2012-03-01 10:04:41+00:00
State: open

Whenever you input a long Unicode character in the middle of a correctly-syntax-highlighted fixe, the highlighting seems to shift by one character.

Example of characters producing the problem:
⟶
⚠

It's hard to describe the output, you should try for yourself. Basically, if:

Foo.bar

was colored such that "Foo" was orange, "." was white, and "bar" was green, when adding somewhere before in the file such a Unicode character, you end up with a white "F", an orange "oo.", a white "b" and a green "ar".

The same shifting occurs for each such character that you prepend, and the shift is still present upon reloading the file.
The shift is _not_ cured by deleting the Unicode character, it only adds up. When you reload the file, it resets to a shift by the number of shift-causing characters.