Fixed #5827 (Invalid token match patterns)