forked from qt-creator/qt-creator
C++ parser: Don't fail on REVISION in Q_PROPERTY.
Change-Id: Ia7407969dc56308fe3eb843e97b93e65eb235186 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
@@ -110,6 +110,23 @@ static inline int classify8(const char *s) {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (s[0] == 'R') {
|
||||
if (s[1] == 'E') {
|
||||
if (s[2] == 'V') {
|
||||
if (s[3] == 'I') {
|
||||
if (s[4] == 'S') {
|
||||
if (s[5] == 'I') {
|
||||
if (s[6] == 'O') {
|
||||
if (s[7] == 'N') {
|
||||
return Token_REVISION;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return Token_not_Qt_context_keyword;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user