Skip to content

Commit

Permalink
[config] do not set defaults for comment REs
Browse files Browse the repository at this point in the history
fixes #312
  • Loading branch information
apalala committed Oct 13, 2023
1 parent c8cefff commit a0490d3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tatsu/infos.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@
from .tokenizing import Tokenizer


COMMENTS_RE = r'\(\*((?:.|\n)*?)\*\)'
EOL_COMMENTS_RE = r'#([^\n]*?)$'


@dataclasses.dataclass
class ParserConfig:
owner: Any = None
Expand All @@ -30,8 +26,8 @@ class ParserConfig:
start_rule: str|None = None # FIXME
rule_name: str|None = None # Backward compatibility

comments_re: str|None = COMMENTS_RE
eol_comments_re: str|None = EOL_COMMENTS_RE
comments_re: str|None = None
eol_comments_re: str|None = None

tokenizercls: Type[Tokenizer]|None = None # FIXME
semantics: Type|None = None
Expand Down

0 comments on commit a0490d3

Please sign in to comment.