From: Lars Knoll Date: Tue, 11 Dec 2012 07:02:09 +0000 (+0100) Subject: super is always a reserved keyword X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=8bd89ac26344c1a617dcfd4730f93559ad48e9d4;p=konrad%2Fqtdeclarative.git super is always a reserved keyword According to 7.6.1.2 of the EcmaScript 5.1 spec, super is always a reserved keyword. Change-Id: Idc300326c036eb9f0a12aa8eec8427023b7652b2 Reviewed-by: Erik Verbruggen --- diff --git a/src/qml/qml/parser/qqmljskeywords_p.h b/src/qml/qml/parser/qqmljskeywords_p.h index 49ce0e2..5d28f88 100644 --- a/src/qml/qml/parser/qqmljskeywords_p.h +++ b/src/qml/qml/parser/qqmljskeywords_p.h @@ -309,7 +309,7 @@ static inline int classify5(const QChar *s, bool qmlMode) { if (s[2].unicode() == 'p') { if (s[3].unicode() == 'e') { if (s[4].unicode() == 'r') { - return qmlMode ? Lexer::T_SUPER : Lexer::T_IDENTIFIER; + return qmlMode ? Lexer::T_SUPER : Lexer::T_RESERVED_WORD; } } }