From ee2af7b5de4d8cfc7db31a389b400ce5420f501b Mon Sep 17 00:00:00 2001 From: Roberto Raggi Date: Fri, 24 Apr 2009 11:45:53 +0200 Subject: Don't generate T_PUBLIC tokens. At this stage we don't know if we wil keep the syntax `public property|signal name' to define properties. --- src/declarative/qml/parser/javascriptlexer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/declarative/qml/parser/javascriptlexer.cpp b/src/declarative/qml/parser/javascriptlexer.cpp index e1c2960..1cfb3b5 100644 --- a/src/declarative/qml/parser/javascriptlexer.cpp +++ b/src/declarative/qml/parser/javascriptlexer.cpp @@ -311,7 +311,7 @@ int JavaScript::Lexer::findReservedWord(const QChar *c, int size) const else if (c[0] == QLatin1Char('p') && c[1] == QLatin1Char('u') && c[2] == QLatin1Char('b') && c[3] == QLatin1Char('l') && c[4] == QLatin1Char('i') && c[5] == QLatin1Char('c')) - return JavaScriptGrammar::T_PUBLIC; + return JavaScriptGrammar::T_RESERVED_WORD; else if (c[0] == QLatin1Char('n') && c[1] == QLatin1Char('a') && c[2] == QLatin1Char('t') && c[3] == QLatin1Char('i') && c[4] == QLatin1Char('v') && c[5] == QLatin1Char('e')) -- cgit v0.12