(self, line: str)
| 68 | return Section(section_name, section_type) |
| 69 | |
| 70 | def _parse_property(self, line: str) -> (str, object): |
| 71 | property_name, property_value = re.split(r"\s*=\s*", line, maxsplit=1) |
| 72 | property_value = self._expand_cm(property_value) |
| 73 | array_elements = re.split(r"\s*;\s*", property_value) # TODO: fix escaped \; |
| 74 | if len(array_elements) > 1: |
| 75 | return (property_name, array_elements) |
| 76 | return (property_name, property_value) |
| 77 | |
| 78 | def _parse(self, path: str): |
| 79 | current_section = None |