From 424dd77e18468a0516f1dbce10bcd3c25f979cf5 Mon Sep 17 00:00:00 2001 From: Roberto Raggi Date: Wed, 25 Mar 2009 11:50:17 +0100 Subject: Added support for Q_SIGNAL and Q_SLOT. --- src/shared/cplusplus/Keywords.cpp | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'src/shared/cplusplus/Keywords.cpp') diff --git a/src/shared/cplusplus/Keywords.cpp b/src/shared/cplusplus/Keywords.cpp index 28cd42227b..57d3b56961 100644 --- a/src/shared/cplusplus/Keywords.cpp +++ b/src/shared/cplusplus/Keywords.cpp @@ -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; } -- cgit v1.2.1