Commit a6b21aac authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Recognize C++0x decltype.

parent 8329d7db
......@@ -745,7 +745,7 @@ static inline int classify7(const char *s, bool q, bool) {
return T_IDENTIFIER;
}
static inline int classify8(const char *s, bool q, bool) {
static inline int classify8(const char *s, bool q, bool x) {
if (s[0] == '_') {
if (s[1] == '_') {
if (s[2] == 'i') {
......@@ -793,6 +793,23 @@ static inline int classify8(const char *s, bool q, bool) {
}
}
}
else if (x && s[0] == 'd') {
if (s[1] == 'e') {
if (s[2] == 'c') {
if (s[3] == 'l') {
if (s[4] == 't') {
if (s[5] == 'y') {
if (s[6] == 'p') {
if (s[7] == 'e') {
return T___TYPEOF;
}
}
}
}
}
}
}
}
else if (s[0] == 'e') {
if (s[1] == 'x') {
if (s[2] == 'p') {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment