Replace before splitting
@@ -164,7 +164,7 @@ class BaseContextParser(ABC):
for i, entity_block in enumerate(definition_blocks):
entity_context_path = self.get_entity_context_path(entity_block)
for line_num, line in potential_block_start_lines:
- line_tokens = [x.replace('"', "").replace('{', " ") for x in line.split()]
+ line_tokens = [x for x in line.replace('"', "").replace('{', " ").split()]
if self._is_block_signature(line_num, line_tokens, entity_context_path):
logging.debug(f'created context for {" ".join(entity_context_path)}')
start_line = line_num
