@meta.hook(EBNF, "<STR_LIT>")<EOL>def add_rpt(self, sequence, mod, pt):
modstr = self.value(mod)<EOL>if modstr == '<STR_LIT>':<EOL><INDENT>self._stream.restore_context()<EOL>self.diagnostic.notify(<EOL>error.Severity.ERROR,<EOL>"<STR_LIT>",<EOL>error.LocationInfo.from_stream(self._stream, is_error=True)<EOL>)<EOL>raise self.diagnostic<EOL><DEDENT>if modstr == '<STR_LIT:!>':<EOL><INDENT>self._stream.restore_context()<EOL>self.diagnostic.notify(<EOL>error.Severity.ERROR,<EOL>"<STR_LIT>",<EOL>error.LocationInfo.from_stream(self._stream, is_error=True)<EOL>)<EOL>raise self.diagnostic<EOL><DEDENT>oldnode = sequence<EOL>sequence.parser_tree = pt.functor(oldnode.parser_tree)<EOL>return True<EOL>
Add a repeater to the previous sequence