More robustly end constructs like syntax, define, and rule.