fixed issue when tokens like <'->'> were parsed incorrectly