From c4d81cda19acbc3197e4cf75a01c1a17e00139f7 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 6 Apr 2007 23:13:29 +0000 Subject: [PATCH] use a proper charset instead of \w (too iffy on what it is) --- tools/qfcc/source/qfpreqcc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/qfcc/source/qfpreqcc b/tools/qfcc/source/qfpreqcc index 111b00d4e..544ba03f1 100755 --- a/tools/qfcc/source/qfpreqcc +++ b/tools/qfcc/source/qfpreqcc @@ -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/]+|/(?!/))+)*)')