@@ -462,8 +462,8 @@ def render_fields(self, fields):
462
462
left_recursion = self .node .config .left_recursion
463
463
parseinfo = self .node .config .parseinfo
464
464
namechars = repr (self .node .config .namechars or '' )
465
- comments_re = repr (self .node .config .comments_re )
466
- eol_comments_re = repr (self .node .config .eol_comments_re )
465
+ comments = repr (self .node .config .comments )
466
+ eol_comments = repr (self .node .config .eol_comments )
467
467
468
468
rules = '\n ' .join (
469
469
[self .get_renderer (rule ).render () for rule in self .node .rules ],
@@ -488,8 +488,8 @@ def render_fields(self, fields):
488
488
parseinfo = parseinfo ,
489
489
keywords = keywords ,
490
490
namechars = namechars ,
491
- comments_re = comments_re ,
492
- eol_comments_re = eol_comments_re ,
491
+ comments = comments ,
492
+ eol_comments = eol_comments ,
493
493
)
494
494
495
495
abstract_rule_template = """
@@ -535,8 +535,8 @@ def __init__(self, text, /, config: ParserConfig | None = None, **settings):
535
535
ignorecase={ignorecase},
536
536
namechars={namechars},
537
537
parseinfo={parseinfo},
538
- comments_re={comments_re },
539
- eol_comments_re={eol_comments_re },
538
+ comments={comments },
539
+ eol_comments={eol_comments },
540
540
keywords=KEYWORDS,
541
541
start={start!r},
542
542
)
@@ -554,8 +554,8 @@ def __init__(self, /, config: ParserConfig | None = None, **settings):
554
554
ignorecase={ignorecase},
555
555
namechars={namechars},
556
556
parseinfo={parseinfo},
557
- comments_re={comments_re },
558
- eol_comments_re={eol_comments_re },
557
+ comments={comments },
558
+ eol_comments={eol_comments },
559
559
left_recursion={left_recursion},
560
560
keywords=KEYWORDS,
561
561
start={start!r},
0 commit comments