Are we at the end of a tuple?
(self, extra_end_rules=None)
| 104 | return self._fail_ut_eof(None, stack, lineno) |
| 105 | |
| 106 | def is_tuple_end(self, extra_end_rules=None): |
| 107 | """Are we at the end of a tuple?""" |
| 108 | if self.stream.current.type in ('variable_end', 'block_end', 'rparen'): |
| 109 | return True |
| 110 | elif extra_end_rules is not None: |
| 111 | return self.stream.current.test_any(extra_end_rules) |
| 112 | return False |
| 113 | |
| 114 | def free_identifier(self, lineno=None): |
| 115 | """Return a new free identifier as :class:`~jinja2.nodes.InternalName`.""" |