Skip to content

Commit

Permalink
depgen.py: preprocessor: fix regexp for macro definition.
Browse files Browse the repository at this point in the history
  • Loading branch information
skosukhin committed Apr 25, 2024
1 parent 94ccd6a commit f293ccd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mkhelper/depgen/preprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class Parser:
_re_endif = re.compile(r"^\s*#\s*endif(?:\s.*)")

_re_include = re.compile(r'^\s*#\s*include\s+(?:"(.*?)"|<(.*?)>)')
_re_define = re.compile(r"^\s*#\s*define\s+([a-zA-Z_]\w*)(\(.*\))?\s+(.*)$")
_re_define = re.compile(r"^\s*#\s*define\s+([a-zA-Z_]\w*)(\([^)]*\))?(.*)$")
_re_undef = re.compile(r"^\s*#\s*undef\s+([a-zA-Z_]\w*)")

def __init__(
Expand Down

0 comments on commit f293ccd

Please sign in to comment.