initialize highlightedPattern in editor to fix segfaults