I'm editing a ~1000 line Python file containing long docstrings. Occasionally, when I'm in editing the middle of a file, the syntax highlighting will 'invert' so that everything outside the docstrings is highlighted as if it were a docstring, and the contents of the docstrings themselves are highlighted as Python code.
It's as if the highlighting algorithm only considers a small local region around the current editing area for its algorithm, and it always assumes the start of that region is code, even if that region happens to begin inside a docstring.
Other colleagues have the same issue when they edit this file too, and we don't have anything special or nonstandard in our vimrcs.