diff options
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/scripts/h2py.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Tools/scripts/h2py.py b/Tools/scripts/h2py.py index 4cea235..581f92f 100755 --- a/Tools/scripts/h2py.py +++ b/Tools/scripts/h2py.py @@ -23,12 +23,13 @@ import sys, regex, regsub, string, getopt, os -p_define = regex.compile('^#[\t ]*define[\t ]+\([a-zA-Z0-9_]+\)[\t ]+') +p_define = regex.compile('^[\t ]*#[\t ]*define[\t ]+\([a-zA-Z0-9_]+\)[\t ]+') p_macro = regex.compile( - '^#[\t ]*define[\t ]+\([a-zA-Z0-9_]+\)(\([_a-zA-Z][_a-zA-Z0-9]*\))[\t ]+') + '^[\t ]*#[\t ]*define[\t ]+' + '\([a-zA-Z0-9_]+\)(\([_a-zA-Z][_a-zA-Z0-9]*\))[\t ]+') -p_include = regex.compile('^#[\t ]*include[\t ]+<\([a-zA-Z0-9_/\.]+\)') +p_include = regex.compile('^[\t ]*#[\t ]*include[\t ]+<\([a-zA-Z0-9_/\.]+\)') p_comment = regex.compile('/\*\([^*]+\|\*+[^/]\)*\(\*+/\)?') |