fixed bug where highlighter breaks at a '{'