summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml
diff options
context:
space:
mode:
authorRoberto Raggi <roberto.raggi@nokia.com>2009-04-24 09:45:53 (GMT)
committerRoberto Raggi <roberto.raggi@nokia.com>2009-04-24 09:45:53 (GMT)
commitee2af7b5de4d8cfc7db31a389b400ce5420f501b (patch)
treec85a452ea286f8b5538226019fa7fd41c72f7b76 /src/declarative/qml
parent0be10a2ba48a3f3d5201944b6bc049c802d4a164 (diff)
downloadQt-ee2af7b5de4d8cfc7db31a389b400ce5420f501b.zip
Qt-ee2af7b5de4d8cfc7db31a389b400ce5420f501b.tar.gz
Qt-ee2af7b5de4d8cfc7db31a389b400ce5420f501b.tar.bz2
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.
Diffstat (limited to 'src/declarative/qml')
-rw-r--r--src/declarative/qml/parser/javascriptlexer.cpp2
1 files changed, 1 insertions, 1 deletions
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'))