fixinf bug when parsing keywords: infinite loop because of bounde-var rule