From 4b1995b381d4f1a00119d91f004df8c804642f35 Mon Sep 17 00:00:00 2001 From: Steven Casper Date: Sat, 17 Aug 2024 23:18:22 -0400 Subject: [PATCH] Allow spaces after '#' character (#29) --- tools/decompctx.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/decompctx.py b/tools/decompctx.py index e86d5ef..290946f 100644 --- a/tools/decompctx.py +++ b/tools/decompctx.py @@ -23,8 +23,8 @@ include_dirs = [ # Add additional include directories here ] -include_pattern = re.compile(r'^#include\s*[<"](.+?)[>"]$') -guard_pattern = re.compile(r"^#ifndef\s+(.*)$") +include_pattern = re.compile(r'^#\s*include\s*[<"](.+?)[>"]$') +guard_pattern = re.compile(r"^#\s*ifndef\s+(.*)$") defines = set()