forked from qt-creator/qt-creator
Added support for Q_SIGNAL and Q_SLOT.
This commit is contained in:
@@ -532,6 +532,19 @@ static inline int classify6(const char *s, bool q) {
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (q && s[0] == 'Q') {
|
||||
if (s[1] == '_') {
|
||||
if (s[2] == 'S') {
|
||||
if (s[3] == 'L') {
|
||||
if (s[4] == 'O') {
|
||||
if (s[5] == 'T') {
|
||||
return T_Q_SLOT;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return T_IDENTIFIER;
|
||||
}
|
||||
|
||||
@@ -850,6 +863,23 @@ static inline int classify8(const char *s, bool) {
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (s[0] == 'Q') {
|
||||
if (s[1] == '_') {
|
||||
if (s[2] == 'S') {
|
||||
if (s[3] == 'I') {
|
||||
if (s[4] == 'G') {
|
||||
if (s[5] == 'N') {
|
||||
if (s[6] == 'A') {
|
||||
if (s[7] == 'L') {
|
||||
return T_Q_SIGNAL;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return T_IDENTIFIER;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user