fixes syntax detection for to matchers

words that included "to" in them were getting flagged and highlighted