update scanner.py

- ignore comment-out code

update DB
This commit is contained in:
Dr.Lt.Data
2024-05-28 21:23:12 +09:00
parent 39eb08ce73
commit 3638262d0d
6 changed files with 258 additions and 913 deletions

View File

@@ -92,6 +92,7 @@ def scan_in_file(filename, is_builtin=False):
class_dict = {}
nodes |= extract_nodes(code)
code = re.sub(r'^#.*?$', '', code, flags=re.MULTILINE)
def extract_keys(pattern, code):
keys = re.findall(pattern, code)