On Dec 4, 2005, at 8:19 PM, Jeff DuMonthier wrote:

match = '\b((([0-9]*)\'b[0-1zZ\?]*)|0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f|ll|LL|ull|ULL)?\b';


The highlighting, which I assume indicates an error, starts at the b after the probably not escaped second '.



Try maybe adding parentheses enclosing everything but the \b's, like so:
\b(((([0-9]*)\'b[0-1zZ\?]*)|0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f|ll|LL|ull|ULL)?)\b

If you send me the whole syntax and some sample examples and who they are supposed to work, I can give it a try over here. The highlighting doesn't necessarily indicate an error. The question is what scope you are getting on those things, which you can see by shift-cntrl-p.


Haris