Syntax highlighting is incorrect after "Format on Save"
Sometimes syntax highlighting acts like a string literal is unterminated even when it is, after using the Format on Save option and saving the file.
Steps to reproduce:
- Enable
Format on Savewhich is in options onText Editor=>Behavior - Open source code which contains a string literal
- Make a trivial change such as adding or deleting a newline
- Save the file
- Repeat steps 3-4 until problem manifests
You should see that the string will be highlighted like it is unterminated, even though it is.
Temporary fix: Disable Format on Save
This problem seemingly manifested itself between versions 0.5.5.5 and 0.5.5.7. Although I'm not positive on this.
Hi. Any chances to fix it? Windows, Xamarin Studio 5.9.4, Mono-D 2.13.3

@dmi7ry is this related to the 'format on save'-issue or is it misbehaving due to your key typings?
yes, it is "format on save"
so it's basically the "\\asdf" that causes the trouble. I can reproduce it here as well.
[Edit] Although not deterministically.
I suspect that it's a corruption of the highlighted-segments-tree cache. Force-invalidating the cache on having saved & formatted a document will then probably fix this, as under normal conditions, escape backslashes and string literals are rendered properly (aren't they?)
Oh and please excuse my long time needed to actually handle this. I really hope it's at least work-arounded now, as I don't want to dig down the editor's internals :P
Just checked 2.13.4. Unfortunately, the behavior has not changed.
I've cloned your GMS-macros project and tried to reproduce it at the very same code location, so to press <Space> and save multiple times in a row - nothing happens, everything is in order.
I'm on Linux though - or it's something with the dark UI theme.
I tried to change themes before wrote here - any theme has bug. Possible it differ for Windows and Linux.
so it's basically the "\asdf" that causes the trouble. I can reproduce it here as well.
strings like x" .... " also:

Hi, Alex. What can be done for fix it?