use a proper charset instead of \w (too iffy on what it is)

This commit is contained in:
Bill Currie 2007-04-06 23:13:29 +00:00 committed by Jeff Teunissen
parent 5baa6057cb
commit c4d81cda19

View file

@ -77,7 +77,7 @@ directive_re = re.compile (
r'^\s*#\s*(define|undef|include|includelist|endlist|ifdef|ifndef|endif|else|pragma)\b' +
r'((\s*("[^"]*"|[^ \t\n\r\f\v/]+|/(?!/))+)?)' +
r'((\s*("[^"]*"|[^ \t\n\r\f\v/]+|/(?!/))+)*)')
macro_re = re.compile (r'#([A-Za-z_]\w*)')
macro_re = re.compile (r'#([A-Za-z_][0-9A-Za-z_]*)')
arg_re = re.compile (
r'((\s*("[^"]*"|[^ \t\n\r\f\v/]+|/(?!/))+)?)' +
r'((\s*("[^"]*"|[^ \t\n\r\f\v/]+|/(?!/))+)*)')