Fix 'template' keyword in list item factories

This commit is contained in:
James Westman 2023-05-13 20:15:28 -05:00
parent 5a782c653b
commit 46e467bbfb
7 changed files with 30 additions and 13 deletions

View file

@ -7,7 +7,7 @@ from .contexts import ScopeCtx
class ExtListItemFactory(AstNode):
grammar = [Keyword("template"), Optional(TypeName), ObjectContent]
grammar = [UseExact("id", "template"), Optional(TypeName), ObjectContent]
@property
def type_name(self) -> T.Optional[TypeName]: