Fix InvalidOperationException in semantic highlighter.
Solution configuration management: preserve Deploy.0 flag.
Move regex-based highlighting engine from DocumentHighlighter into its own new class (HighlightingEngine).

DocumentHighlighter now only is only responsible for maintaining the highlighting state (span stacks at line boundaries).