From 8bd89ac26344c1a617dcfd4730f93559ad48e9d4 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Tue, 11 Dec 2012 08:02:09 +0100 Subject: [PATCH] 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 --- src/qml/qml/parser/qqmljskeywords_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } } -- 2.7.4