Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions expander.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@


class Expander:
local_include = re.compile(
r'#include\s*"([a-z_]*(|.hpp))"\s*')
atcoder_include = re.compile(
r'#include\s*["<](atcoder/[a-z_]*(|.hpp))[">]\s*')

Expand Down Expand Up @@ -61,15 +59,8 @@ def expand_acl(self, acl_file_path: Path) -> List[str]:
name = m.group(1)
result.extend(self.expand_acl(self.find_acl(name)))
continue

m = self.local_include.match(line)
if m:
name = m.group(1)
result.extend(self.expand_acl(acl_file_path.parent / name))
continue

result.append(line)

return result

def expand(self, source: str) -> str:
Expand Down