Board index » cppbuilder » C++ Syntax Highlighting error
Richard Quartermaine
![]() CBuilder Developer |
C++ Syntax Highlighting error2007-10-21 04:36:34 PM cppbuilder81 Hi, The C++ syntax highlighting does not like numeric literals like 1u. These are flagged as invalid characters. I tend to leave the syntax alone except for octal and invalid characters, both of which tend to be mis-typing - something I'm good at :-) Moving from C++2007 to BDS2007 caused some compilation errors. Ambiguity between '... CheckEquals(int,int,System::AnsiString) ... And CheckEquals(unsigned int,unsigned int,System::AnsiString) ... The simple fix was changing numeric literals from '1' to '1u'. Now I can find the in the code easily thanks to the highlighting :-) Richard |