Fixes for syntax highlighting (from ashtonkj)

This fixes the syntax highlighting for a lot of different things, such as preprocessor directives and unicode chars. Tests mostly work on windows now too.
Closes #760